Groups | Blog | Home
all groups > dotnet remoting > february 2005 >

dotnet remoting : singleton and lease time management


msuk
2/25/2005 2:41:04 AM
All,

I am writing a remoting component using the singleton patteren and would
like to know how I can handle the lease time for the object so if no calls
are comming in the object shut down after a certain amount of time. Also If
a client suddenly drops it connection to the remote object how can this be
handled?

Thanks
Sunny
2/25/2005 4:09:33 PM
In article <0C252B29-265E-4B68-BBF3-8AC018F106FA@microsoft.com>,
msuk@discussions.microsoft.com says...
[quoted text, click to view]

Override InitializeLifetimeService() in your class. There is an example
in the docs.

AddThis Social Bookmark Button