Monitoring events in a windows service, from a forms app

S

Stuart Parker

Hi... I'm messing about with windows services in vb.net 2005 and have the
following question.

I have a service which has a timer in it, which fires every minute -
Textbook stuff
I have a windows forms app which I would like to respond to the service
firing an event

For example. Service's timer triggers, and windows forms app then displays a
message saying "Event Fired"

Is this obvious and easy to do ... can't help feeling I have missed
something.

Or, does this need remoting/wcf to achieve ?

Cheers
Stu
 
M

Michel Posseth [MCP]

You need remoting / WCF or a sql server and notification services i use
this in my current project as i wanted this to function at all times (
without Admin intervention to open the needed ports )

my Client just subscribes to a dataset where the windows service is writing
its events in , on every event the client is notified by notification
services and can thus synchronize the messages that were written

if you can not set up notfication services there is also the posibility to
poll the database once in a while to see if there are changes

HTH

Michel
 

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