M
mrmikal
I'm hoping someone can help me with this.
I want to build a service that constantly receives data from an
external server and does minor processing and databasing on the
received data. This part is simple and is already built.
However, I want to also build clients that I can launch from my
machines that will "connect" to this service while it's running and
receive events.
So for example, the service (NumberService) receives a sequence of
numbers (1, 2, 3, 4, 5) and for each number it receives, it stores it
in a database and then raises an event (NumberReceived) and passes that
number.
I want to build a client (SequenceClient.exe) that "subscribes" to the
NumberReceived event and reacts when the sequence (3-4-5) is received.
The deal is, I want to be able to launch this SequenceClient at any
time...sometime it's on and sometimes it's off...but the NumberService
is always on.
I have a feeling that .NET remoting would do this, but I'm wondering if
there is another way (by hooking into the service somehow). The SERVICE
and CLIENT will always be on the same machine, so I have a feeling that
..NET remoting adds a bit of unnecessary overhead. Is .NET remoting the
only way? or is there a better, more efficient way?
Any direction you can take me would be appreciated...the only
stipulation is that it has to be accomplished in a .NET language
(VB.NET, C#) since that's the only area of expertise we currently have.
Basically, the question goes to the heart of raising events across
process spaces. Can it be done? Can one application raise events in
another completely separate process? Is .NET remoting the only way to
accomplish this?
I want to build a service that constantly receives data from an
external server and does minor processing and databasing on the
received data. This part is simple and is already built.
However, I want to also build clients that I can launch from my
machines that will "connect" to this service while it's running and
receive events.
So for example, the service (NumberService) receives a sequence of
numbers (1, 2, 3, 4, 5) and for each number it receives, it stores it
in a database and then raises an event (NumberReceived) and passes that
number.
I want to build a client (SequenceClient.exe) that "subscribes" to the
NumberReceived event and reacts when the sequence (3-4-5) is received.
The deal is, I want to be able to launch this SequenceClient at any
time...sometime it's on and sometimes it's off...but the NumberService
is always on.
I have a feeling that .NET remoting would do this, but I'm wondering if
there is another way (by hooking into the service somehow). The SERVICE
and CLIENT will always be on the same machine, so I have a feeling that
..NET remoting adds a bit of unnecessary overhead. Is .NET remoting the
only way? or is there a better, more efficient way?
Any direction you can take me would be appreciated...the only
stipulation is that it has to be accomplished in a .NET language
(VB.NET, C#) since that's the only area of expertise we currently have.
Basically, the question goes to the heart of raising events across
process spaces. Can it be done? Can one application raise events in
another completely separate process? Is .NET remoting the only way to
accomplish this?