3.3.4.2 Register

Register registers a Sponsor with the Lease Object associated with the Server Object.

 void Register(
     System.Runtime.Remoting.Lifetime.ISponsor sponsor
 );
  

sponsor:  A Proxy to a Server Object that implements the ISponsor interface.

Return Values:  There are no return values for this method.

Exceptions: In addition to the Exceptions common to all Remote Methods in .NET Remoting (as specified in [MS-NRTP] section 3.2.5.1.7.2), if the Sponsor specified in the sponsor argument is a Null Object, an ArgumentNullException (as specified in section 2.2.8) MUST be sent back.

The implementation of the method MUST create a new Sponsor Info by using a Sponsor instance referenced by the argument sponsor, and a TimeSpan value of 0. The Sponsor Info MUST be added to the end of the SponsorList of the associated Lease Data.