Hi,
I want to know about the terms LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime in ASP.NET ?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 16, 2012, 8:32 PM EDT
We have another thread in the same forum. you can see the posts there.
http://www.c-sharpcorner.com/Forums/Thread/156300/define-leasetime-sponsorshiptime-in-Asp-Net.aspx
you can find some more information in this link.
http://www.careerride.com/NET-remoting-lifecycle.aspx
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 16, 2012, 8:47 PM EDT
The LeaseTime property protects the object so that the garbage collector does not destroy it as remoting objects are beyond the scope of the garbage collector. Every object created has a default leasetime for which it will be activated. Once the leasetime expires, the object is eligible again for garbage collector and is eventually destroyed. Default value is 5 minutes.
Even though the leasetime of an object has expired, there still may be clients who would still need the remoting object on the server. In such cases the leasemanager keeps a track of such clients and asks them if they need the object and are ready to extend or sponsor the object to extend its existence. This is done through SponsorshipTime property, which is then based on the sponsor.
The RenewOnCallTime property defines the duration for which a remoting object's lease is extended if a sponsor is found. The default value is 2 minutes.
The LeaseManager class has a property PollTime, which defines the frequency at which the LeaseManager polls the leases. Default is 10 seconds.
Thanks