
pobieranie * pdf * do ÂściÂągnięcia * download * ebook
Podobne
- Strona startowa
- Jack L. Chalker Web of the chosen
- stud service 2 strictly accountable
- Jerry Pournelle Birth Of Fire
- Ćwiczenia 2 latka
- Hoover Colleen Hopeless 02 Losing Hope
- J.Lynn ZostaśÂ„ ze mnć… tom 2
- Cities in Flight James Blish
- Burroughs Edgar Rice Tarzan 09 Tarzan i zloty lew
- 687. Michaels Leigh śÂšlub na śźyczenie
- Janrae Frank Lycan Blood 01 Serpent's Quest
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- acwpower.xlx.pl
[ Pobierz całość w formacie PDF ]
ICertKItem. You want to ensure that calls to the serviced component through ICertKItem are queued. What
should you do?
A. To CertKItem, add the following attribute:
[InterfaceQueuing(true, Interface="ICertKItem")]
B. To CertKItem, add the following attribute:
[Transaction(TransactionOption.Disabled,
Isolation=TransactionIsolationLevel.Serializable)]
C. To the CertKItem assembly, add the following attribute:
[assembly: ApplicationQueuing(Enabled=true, queueListenerEnabled=true)]
D. In the CertKItem implementation, override the Activate method from the
Serviced Component class. In the Activate method, add the following code segment: queue q = new queue();
Q.Enqueue (this);
Answer: C
Explanation: In addition to enabling queued component support at the application level, you must mark your
interfaces as capable of receiving queued calls. You do that by using setting the Queue Listener Enabled
attribute to True.
Note: The COM+ Queued Components (QC) service provides an easy way to invoke and execute components
Actualtests.com - The Power of Knowing
070-320
asynchronously. Processing can occur without regard to the availability or accessibility of either the sender or
receiver.
Reference: .NET Framework Developer's Guide, Queued Components [C#]
Incorrect Answers
A: The signature for the InterfaceQueuing attribute as shown in Answer A is wrong.
B: Transactions are not helpful for interface queuing configuration.
D: Creating a new queue in the Active method is not correct in this scenario.
QUESTION 119 You are using Visual Studio .NET to develop an application to replace a COM-based
application. A former colleague began writing a .NET class for the new application. This class will be used by
client applications as a COM object. You are assigned to finish writing the class. The class included the
following code segment:
[Com Visible(false)] public class CKClass { public CKClass() { // Implementation code goes here.}
[COM Visible(true)] public int CKMethod(string param) { return 0; }
[COM Visible(true)] protected bool CKOtherMethod(){ return true; }
[COM Visible(true)] public int CKProperty { get { return 0; } }
// Other implementation code goes here.}
When this code runs, it will expose one or more methods to the client application through COM. Which
member or members will be exposed? (Choose all that apply)
A. CKMethod
B. CKOtherMethod
C. CKProperty
D. CKClass constructor
Answer: A, C
QUESTION 120 You create a .NET Remoting object named Chat Server. Chat Server is the central server for a
group of chat client applications. Client applications send string chat messages to Chat Server. Chat Server then
broadcast each message to all registered chat client applications. Chat Server uses an HTTP remoting channel to
communicate with the client applications. The Chat Server class includes the following code segment:
// The event class code follows. [Serializable] public class SubmissionEventArgs : EventArgs { public string
User { // Implementation code goes here. } public string Message { // Implementation code goes here. //
Remaining implementation code goes here. } // The delegate code follows. public delegate void Sub mission
Event Handler (object sender, Submission Event Args submission Args); // The event code follows and //
appears within the Chat Server class. public event SubmissionEventHandler Submission; You need to write a
client application that includes a class named Chat Client to communicate with Chat Server. You want Chat
Server to send and display chat messages. What should you do?
A. Implement the IDeserializationCallback interface in Chat Client. Implement an event handler for the
Submission event.
B. Derive Chat Client from System.Object. Implement the ISerializable interface. Implement an event handler
for the Submission event.
C. Implement the ISerializable interface in Chat Client. Implement an event handler for the Submission event.
Host Chat Client in Internet Information Services (IIS) by using a Web.config file.
D. Derive Chat Client from MarshalByRefObject. Implement an event handler for the Submission event.
Actualtests.com - The Power of Knowing
070-320
Configure Chat Client to listen on an Http Channel.
Answer: D
QUESTION 121 You have a .NET Remoting object named Scheduler. The Scheduler class is in an assembly
file named TaskScheduler.dll. The Scheduler class is hosted by an application named SchedulerServer.exe. This
application is configured by using a file named SchedulerServer.exe config. This file configures the Scheduler
class to be a client activated object by using a Tcp Channel and a Binary Formatter. You want to deploy the
Scheduler object to a computer named Certkiller1 so that client applications can begin to use it. You copy
TaskScheduler.dll, SchedulerServer.exe, and SchedulerServer.exe.config to a directory on Certkiller1. What
should you do next?
A. Install TaskScheduler.dll in the global assembly cache.
B. Use the Assembly Registration tool (Regasm.exe) on Certkiller1 to register SchedulerServer.exe.
C. Use the Assembly Registration tool (Regasm.exe) on Certkiller1 to register TaskScheduler.dll.
D. Configure Certkiller1 to execute SchedulerServer.exe each time Certkiller1 is restarted. Then manually
execute SchedulerServer.exe on Certkiller1.
Answer: D
QUESTION 122 You create a class named User that provides user information from a variety of data sources.
Different instances of User connect to different data sources to load the data . User is a read-only representation
of user information and does not support written changes back to a data source.
The User class includes the following code segment:
[Serializable] public class User { public User(string connectionString) { this.connectionString =
connectionString; // Additional construction code goes here. } internal string ConnectionString { get { return
connectionString; } } private string connectionString; // Other methods and properties go here. Once a User
object has been populated, it no longer needs the connectionString member variable. You have a .NET
Remoting object named Project that returns User objects. You want to prevent remote client applications from
being able to view the content of the connectionString member variable.
What should you do?
A. Make the ConnectionString property private.
[ Pobierz całość w formacie PDF ]