D
Dave
This may be a simple question, but I'm new to .NET and not having much luck
finding out the answer.
I'm writing a Windows Service and want to develop a separate program that
provides a user interface so the user can control the service. They are both
being developed in Visual C# .NET. What is the best way to get them to talk
to each other?
I've heard of remoting, but not sure that is what I need, it seems kind of
overcomplicated and I'm not all that keen on opening TCP/IP ports. But I'll
read into it further if someone replies and tells me that would do what I'm
trying to achieve. What would be great is if there is a way for the UI
program to call methods in the service like what was possible with ActiveX
EXEs.
I also thought of having the bulk of the service code in a class library,
which both programs could connect to and share data that way. However, both
programs seem to get an entirely different instance of the DLL (I did a test
with static variables) and I can't find a way to make a variable shared
between all programs using the DLL.
finding out the answer.
I'm writing a Windows Service and want to develop a separate program that
provides a user interface so the user can control the service. They are both
being developed in Visual C# .NET. What is the best way to get them to talk
to each other?
I've heard of remoting, but not sure that is what I need, it seems kind of
overcomplicated and I'm not all that keen on opening TCP/IP ports. But I'll
read into it further if someone replies and tells me that would do what I'm
trying to achieve. What would be great is if there is a way for the UI
program to call methods in the service like what was possible with ActiveX
EXEs.
I also thought of having the bulk of the service code in a class library,
which both programs could connect to and share data that way. However, both
programs seem to get an entirely different instance of the DLL (I did a test
with static variables) and I can't find a way to make a variable shared
between all programs using the DLL.