[Mono-list] Garbage-collecting a remoting singleton object in a service?

Lluis Sanchez lluis at ximian.com
Fri Sep 1 10:02:59 EDT 2006


You can use RemotingServices.Disconnect (obj) for this.

Lluis.

El dv 01 de 09 del 2006 a les 15:35 +0200, en/na "Andrés G. Aragoneses
[ knocte ]" va escriure:
> 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