mscorlib(4.0.0.0) API with additions
ILease.cs
2 using System.Security;
3 
5 {
7  [ComVisible(true)]
8  public interface ILease
9  {
14  {
15  [SecurityCritical]
16  get;
17  [SecurityCritical]
18  set;
19  }
20 
25  {
26  [SecurityCritical]
27  get;
28  [SecurityCritical]
29  set;
30  }
31 
36  {
37  [SecurityCritical]
38  get;
39  [SecurityCritical]
40  set;
41  }
42 
47  {
48  [SecurityCritical]
49  get;
50  }
51 
56  {
57  [SecurityCritical]
58  get;
59  }
60 
65  [SecurityCritical]
66  void Register(ISponsor obj, TimeSpan renewalTime);
67 
71  [SecurityCritical]
72  void Register(ISponsor obj);
73 
77  [SecurityCritical]
78  void Unregister(ISponsor obj);
79 
84  [SecurityCritical]
85  TimeSpan Renew(TimeSpan renewalTime);
86  }
87 }
Defines a lifetime lease object that is used by the remoting lifetime service.
Definition: ILease.cs:8
Indicates that the implementer wants to be a lifetime lease sponsor.
Definition: ISponsor.cs:8
LeaseState
Indicates the possible lease states of a lifetime lease.
Definition: LeaseState.cs:8
void Register(ISponsor obj, TimeSpan renewalTime)
Registers a sponsor for the lease, and renews it by the specified T:System.TimeSpan.
TimeSpan InitialLeaseTime
Gets or sets the initial time for the lease.
Definition: ILease.cs:36
Definition: __Canon.cs:3
void Unregister(ISponsor obj)
Removes a sponsor from the sponsor list.
TimeSpan CurrentLeaseTime
Gets the amount of time remaining on the lease.
Definition: ILease.cs:47
TimeSpan RenewOnCallTime
Gets or sets the amount of time by which a call to the remote object renews the P:System....
Definition: ILease.cs:14
TimeSpan SponsorshipTimeout
Gets or sets the amount of time to wait for a sponsor to return with a lease renewal time.
Definition: ILease.cs:25
Represents a time interval.To browse the .NET Framework source code for this type,...
Definition: TimeSpan.cs:12
TimeSpan Renew(TimeSpan renewalTime)
Renews a lease for the specified time.
LeaseState CurrentState
Gets the current T:System.Runtime.Remoting.Lifetime.LeaseState of the lease.
Definition: ILease.cs:56