This documentation is archived and is not being maintained.

ClientSponsor Members

Provides a default implementation for a lifetime sponsor class.

The ClientSponsor type exposes the following members.

Public method ClientSponsor Overloaded. Initializes a new instance of the ClientSponsor class.

Public method Close Empties the list objects registered with the current ClientSponsor.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Frees the resources of the current ClientSponsor before the garbage collector reclaims them. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Initializes a new instance of ClientSponsor, providing a lease for the current object. (Overrides MarshalByRefObject.InitializeLifetimeService().)
Protected method MemberwiseClone Overloaded.
Public method Register Registers the specified MarshalByRefObject for sponsorship.
Public method Renewal Requests a sponsoring client to renew the lease for the specified object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Unregister Unregisters the specified MarshalByRefObject from the list of objects sponsored by the current ClientSponsor.

Public property RenewalTime Gets or sets the TimeSpan by which to increase the lifetime of the sponsored objects when renewal is requested.