Chapter 14

 < Day Day Up > 

A1:

  1. True. A process may contain multiple AppDomains.

  2. True. An AppDomain may contain multiple assemblies.

  3. True. An AppDomain may contain .dll and .exe files.

  4. True. An AppDomain can be unloaded from a process.

A2:

Three activation modes: client activation, server activation (single call), and server activation (singleton). HTTP or TCP can be used with all.

A3:

Single call server activation creates a new object on each call; single call singleton creates an object on the first call only. The object is then used for other calls.

A4:

CurrentLeaseTime Amount of time until object is available for Garbage Collection.

InitialLeaseTime Initial lifetime of a lease.

RenewalOnCallTime Amount that CurrentLeaseTime is increased on called object.

A5:

Set the LeaseManagerPoolTime in a configuration file to specify how frequently the lease manager checks for expirations.

A6:

Client-activated and server-activated singleton use leases.

A7:

c. A server-activated singleton object is created when the first call is made to the host object.

A8:

Channel registration indicates the type of protocol to be used usually TCP or HTTP in the remoting and the port number to be used. Type registration specifies the available remote object and the activation mode type.

A9:

An interface or SoapSuds is used to prevent having to place a full assembly on the remoting client's machine. The assembly provides metadata, but can also expose proprietary code. An interface provides only the metadata a client requires. SoapSuds extracts the metadata and places it in a file that is deployed on the client's machine.

     < Day Day Up > 


    Core C# and  .NET
    Core C# and .NET
    ISBN: 131472275
    EAN: N/A
    Year: 2005
    Pages: 219

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net