What are LeaseTime, Sponsorship Time, Renew on Call Time and Lease Manager Poll Time?
In the normal .NET environment objects lifetime is managed by garbage collector. But inremoting environment remote clients can access objects which are uncontrollable of garbage collector. Garbage collector boundary is fixed to a single PC on which framework is running; any remote client across physical PC is uncontrollable of GC (Garbage Collector).
This constraint of garbage collector leads to a new way of handling lifetime for remoting objects, using the concept known as "LeaseTime". Every server side object is assigned by default a "LeaseTime" of 5 minutes. This leasetime is reduced at certain intervals. Again for every method call a default of 2 minutes is assigned. Whenever i say method call means every call made from client. This is known as "RenewalOnCallTime".
When total object lifetime is decreased to zero, it queries the sponsor that should the object be destroyed. Sponsor is an object which decides must object Lifetime be renewed. Hence it queries any registered sponsors with the object, if does not find any then the object is marked for garbage collection. After this the garbage collection has whole control on the object lifetime. If we do not foresee how much long a object will be required specify the "SponsorShipTimeOut" value. SponsorShipTimeOut is the time unit a call to a sponsor is timed out. "LeaseManagerPollTime" describe the time the sponsor has to return a lease time extension.