IPC Events in windows service
-
Hi everyone, I have been researching this topic for a few hours now and have not found any good sources of information. Basically, I have a windows service and a windows form application. The winform app can control the service (start, stop, pause...). However, the service runs long processes, and I would like for it to report progress that can be displayed by the winform, when the winform is running. The progress should be reported by raising events that the winform will subscribe to. I know I will have to have a shared library that contains an interface or class that the server extends or inherits. I am not sure how to the whole thing would be structured though. If anyone has any experience with this and can share a very simple example, I would really appreciate it. Links to related articles are also very welcome. Thanks in advance,
----------------- Picazo
-
Hi everyone, I have been researching this topic for a few hours now and have not found any good sources of information. Basically, I have a windows service and a windows form application. The winform app can control the service (start, stop, pause...). However, the service runs long processes, and I would like for it to report progress that can be displayed by the winform, when the winform is running. The progress should be reported by raising events that the winform will subscribe to. I know I will have to have a shared library that contains an interface or class that the server extends or inherits. I am not sure how to the whole thing would be structured though. If anyone has any experience with this and can share a very simple example, I would really appreciate it. Links to related articles are also very welcome. Thanks in advance,
----------------- Picazo
Have you looked into .NET Remoting? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Have you looked into .NET Remoting? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Yes. I would like to use the IPC channel since the service and the winform will live on the same machine. I have used IPC before, but never with winservices or events. That is the part that I would like some advice or assistance with. Thanks,
----------------- Picazo