Intracting btw. windows service.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Is it possible to interact between two different windows service?
i.e there is a custom method in ServiceA and i want to invoke it from ServiceB.

Any samples?


Thanks and Regards,
Sachi
 
Several ideas cross my mind:

1. Remoting. Might be a problem if the account the service runs under has a
restricted access to the network. Again, depends on the channel used - with
a channel based on named pipes this should work well.
2. Named pipes. These are frequently used for inter-process communicaton in
the unmanaged world. I believe versions 1.0 and 1.1 of the .NET Framework do
not have support for them but you can still employ named pipes through
P/Invoke.
3. Shared memory (usually used in conjunction with item 2)
4. Raw sockets. Limitations are the same as in item 1.
5. COM-creatable objects exposed by the service. Not sure how to use this in
..NET though - and I remember there are certain limitations on using COM in a
Windows Service
 
Back
Top