Event subscribers

  • Thread starter Thread starter RobbieGotNeeds
  • Start date Start date
R

RobbieGotNeeds

I have a task to "notify event subscribers" whenever an error occurs
while monitoring a process. Now, the other program(s) that will
monitor my "events" are not in the same program space as mine. IOW,
they are separate program(s) that will listen for my events and then
take some action.

I'm a bit lost on how to "publish" these events so that another program
can subscribe to them and take some action. I've seen a number of
examples that use delegates and custom events, but they seem like
they're all operating in the same program as they are defined.

Could someone at least point me in the right direction? A simple code
snippet that I could build upon?

Thanks in advance,
Robbie
 
I don't have a snippet of code for you because I haven't done it but I think
the solution to your problem is the WMI classes in the
System.Management.Instrumentation class which has the ability to publish and
subscribe to management events from your software.

HTH

DalePres
MCAD, MCDBA, MCSE
 
Back
Top