Windows service singleton interface to a public sealed class

  • Thread starter Thread starter ogled
  • Start date Start date
O

ogled

Hi

I have a scheduler functionality that is implemented in public sealed
class with static methods, and now i'd like to utilize it in a window
service and have an exe file to access the singleton from outside as
well. Is this possible to achieve?


I've looked inot remoting but I haven't been able to send the object
ref to the client to access.... the different appdomain and all that.



/Erik
 
I'm not quite sure what you mean by your last paragragh. With .Net remoting
objects can be passed by value (by adding the [Serializable] attribute to
your class), or by ref (inherit from MarshalByRefObject).

Your server side objects can be server (SingleCall or Singleton - which it
sounds like you want) or client activated.

There is a microsoft.public.dotnet.framework.remoting group, if you need any
advice specific to remoting.

HTH
Dan
 
Back
Top