[Mono-list] Garbage-collecting a remoting singleton object in a service?
"Andrés G. Aragoneses [ knocte ]
"Andrés G. Aragoneses [ knocte ]
Fri Sep 1 09:35:45 EDT 2006
I am interested in implementing a service (windows service in windows,
and using mono-service on linux, I suppose) that hosts a singleton
remoting object. As I have read on some docs, no leasing management is
needed if no SAO/CAO hosting method is used (returning null in
InitializeLifeTimeService method, as I will use a Singleton instance)
but, how can I garbage-collect manually this server object on the
OnStop() method of the service (so as to create a new instance again on
the OnStart method)?
I have seen that the ILease.CurrentState property is read-only so I
cannot manually set the Lease as Expired from an external (but not
remote) object, am I right?
Thanks in advance,
Andrés [ knocte ]
P.S.: Is anyone in the list using the GenuineChannels library in Mono?
Does it work? Is there any other stable alternatives? I think I read a
message from Rafael Teixera where I understood he was using a similar
solution but had scalability problems...? BTW, will Indigo support this
kind of channels? Will it be implemented in Mono?
--
More information about the Mono-list
mailing list