3.2.4.1 GetLifetimeService

GetLifetimeService retrieves a reference to the Lease Object associated with the target Server Object.

 System.Runtime.Remoting.Lifetime.ILease GetLifetimeService();
  

Return Values:  The Lease Object associated with the target Server Object.

Exceptions:  No Exceptions are specified for this method other than the Exceptions common to all Remote Methods in .NET Remoting (as specified in [MS-NRTP] section 3.2.5.1.7.2).

On the first call to GetLifetimeService, the implementation MUST do the following:

  • Set the CurrentState of the Lease Object associated with the target Server Object to Active.

  • Set the CurrentState of the associated Lease Data to Active.

The Server Object Reference MUST be returned as the Return Value for the method.