Control application for a windows service (best practice)

C

Cato

How can i interact with a windows service written in c#?

i'm developing a software that monitor file creation activity, it does
work well.. it "logs" all my events and executes custom actions on
file creation.

How can i create a windows form application that interacts with my
service and let me see "real time" events?

Or... how can i query my windows service for a certain variable or
object??

I saw i can crfeate a OnCustomCommand event and control it with a
ServiceController class.. but the ExecuteCommand () method is a VOID
method.


thank you
 
C

Ciaran O''Donnell

I did this a while ago and setup a remoting server inside the service and
connected to that from the client. The server then raised events or returned
things from method calls to indicate the state of the service.
I guess now the best practice to this approach would be to use WCF rather
than remoting.
 

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