Lifetime Management

When left alone, a remote server component exists for a default amount of time and then makes itself available for garbage collection. It's often more desirable to explicitly manage the lifetime of remote components. This is why the remoting framework provides a leasing mechanism for finer granularity of control in remote component lifetime management.

Remote leasing operates via a collaborative protocol between one or more client components, a server component, and a lease manager.

Remote server components begin life with a designated amount of time before garbage collection. Client components register with the server component's lease manager for notification of when the server's lifetime is expiring. The lease manager keeps ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.