System.Runtime.Remoting.Lifetime.ISponsor Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Lifetime
Summary
Indicates that the implementer wants to be a lifetime lease sponsor.
C# Syntax:
public interface ISponsor
Remarks
An object must implement the ISponsor interface if it needs to request a lease renewal for a particular object. An object that implements the ISponsor interface can become a sponsor by registering itself with the lease manager. The ISponsor interface is used by the lifetime service to call back to the sponsor.
See also:
System.Runtime.Remoting.Lifetime Namespace

System.Runtime.Remoting.Lifetime.ISponsor Member List:

Public Methods
Renewal Requests a sponsoring client to renew the lease for the specified object.

System.Runtime.Remoting.Lifetime.ISponsor Member Details

Method: Renewal(
   ILease lease
)
Summary
Requests a sponsoring client to renew the lease for the specified object.
C# Syntax:
TimeSpan Renewal(
   ILease lease
);
Parameters:

lease

The lifetime lease of the object that requires lease renewal.

Return Value:
The additional lease time for the specified object.
Remarks
The ISponsor.Renewal method is called by the distributed garbage collector to renew the lease for the specified object.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.