Intracting btw. windows service.

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
 
D

Dmitriy Lapshin [C# / .NET MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top