Hi All...

I've written a medium-sized multi-threaded server - currently hosted as a
windows service - in addition to the server classes I have a "watcher" class
which attaches to server and is derived from System.MarshalByRefObject, it
acts as a façade picking up statistics from the inner workings of the server
classes.  All good so far!

Now I figured I would expose this "watcher" to the outside world via
remoting... but all the examples so far involve this call or something
similar.

RemotingConfiguration.RegisterWellKnownServiceType( typeof( ServerStatus
),"ServerStatus",WellKnownObjectMode.Singleton );

Which would be ok, accept that before the user receives the single instance
created via Remoting I need to associate the watcher with the server
classes.  Ideally I would like to expose a single instance for the entire
windows service to all clients, ie. A per-machine singleton which I have
created myself and had a chance to initialize with instances of other
objects etc.

Is this possible... any pointers? I could do it in Corba :) but I haven't
found that namespace anywhere in .Net for that yet... *g*

Cheers,

- Alex

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to