How to: Renew a Lease
This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the Windows Communication Foundation (WCF).
This code obtains a lease and extends it directly as shown in the following code example.
Compiling the Code
This example requires:
References to the System.Runtime.Remoting.Lifetime namespace.