Communicate between service and winform
Posted
by
Richard Tivey
on Stack Overflow
See other posts from Stack Overflow
or by Richard Tivey
Published on 2013-06-24T22:51:31Z
Indexed on
2013/06/25
4:21 UTC
Read the original article
Hit count: 190
c#
I could do with a bit of help with a windows service im writing in c#. The service basically just runs various tasks on a schedule. It has 3 main sections: a class which contains everything for the task (config, code to be executed when it runs, etc), the service which contains instances of the tasks, running them on a timer and a windows form which is used to configure the settings for the task.
The question I have is would it be possible to reference the service from the Winform whilst the service is running? Ultimately I want to be able to open the Winform and see a live status of what the service is currently doing.
I've considered writing something network related to get around it but it didn't seem correct considering that both processes would be on the same machine.
© Stack Overflow or respective owner