471,335 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,335 software developers and data experts.

Windows service singleton interface to a public sealed class

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

Jul 21 '05 #1
1 2078
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

"ogled" wrote:
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dan | last post: by
18 posts views Thread by David | last post: by
8 posts views Thread by Tony W | last post: by
13 posts views Thread by Robert W. | last post: by
4 posts views Thread by SimpTheChimp | last post: by
2 posts views Thread by baba | last post: by
reply views Thread by Jeff Louie | last post: by
9 posts views Thread by Tony | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.