PC Review


Reply
Thread Tools Rate Thread

Control application for a windows service (best practice)

 
 
Cato
Guest
Posts: n/a
 
      6th Oct 2008
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
 
Reply With Quote
 
 
 
 
Ciaran O''Donnell
Guest
Posts: n/a
 
      7th Oct 2008
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.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


"Cato" wrote:

> 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
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows service control application Cato Microsoft C# .NET 3 30th Dec 2008 03:25 PM
application go get full service control John Jay Smith Windows XP Performance 3 28th Sep 2006 02:42 AM
application go get full service control John Jay Smith Windows XP General 3 28th Sep 2006 02:42 AM
application go get full service control John Jay Smith Windows XP Help 3 28th Sep 2006 02:42 AM
Best Practice to spawn an Application from a Web Service ? Paul Microsoft ASP .NET 3 13th Oct 2003 09:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 AM.