Monitoring events in a windows service, from a forms app

  • Thread starter Thread starter Stuart Parker
  • Start date Start date
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
 
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
 
Back
Top