What are the ways to renew lifetime leases of objects?
Answer Posted / Devendra Rajput
In .NET Remoting, you can renew lifetime leases of objects using several methods. One common approach is to implement the IServerHostSink and IClientHostSink interfaces and override the AfterCreateChannel method. In this method, you can create a new lease and attach it to the server-activated object (SAO). Another approach is to use client-activated objects (CAOs) and set their lease time manually or implement custom lease managers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers