Chapter 14

 < Day Day Up > 


  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.


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


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.


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.


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


Client-activated and server-activated singleton use leases.


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


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.


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 © 2008-2017.
    If you may any questions please contact us: