public class ClientSponsor : MarshalByRefObject, ISponsor
|
| ctor #1 | Overloaded:.ctor()Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the ClientSponsor class with default values. |
| ctor #2 | Overloaded:.ctor(TimeSpan renewalTime) Initializes a new instance of the ClientSponsor class with the renewal time of the sponsored object. |
| RenewalTime | Read-write Gets or sets the TimeSpan by which to increase the lifetime of the sponsored objects when renewal is requested. |
| Close | Empties the list objects registered with the current ClientSponsor. |
| CreateObjRef (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| InitializeLifetimeService | Overridden: Initializes a new instance of ClientSponsor, providing a lease for the current object. |
| Register | Registers the specified MarshalByRefObject for sponsorship. |
| Renewal | Requests a sponsoring client to renew the lease for the specified object. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| Unregister | Unregisters the specified MarshalByRefObject from the list of objects sponsored by the current ClientSponsor. |
| Finalize | Overridden: Frees the resources of the current ClientSponsor before the garbage collector reclaims them. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public ClientSponsor(); |
public ClientSponsor( |
renewalTime
public TimeSpan RenewalTime {get; set;}
|
public void Close(); |
requestedType
| Exception Type | Condition |
|---|---|
| RemotingException | This instance is not a valid remoting object. |
~ClientSponsor(); |
public virtual int GetHashCode(); |
public object GetLifetimeService(); |
public Type GetType(); |
public override object InitializeLifetimeService(); |
protected object MemberwiseClone(); |
public bool Register( |
obj
lease
public virtual string ToString(); |
public void Unregister( |
obj