By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,455 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,455 IT Pros & Developers. It's quick & easy.

Event subscribers

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
<Ro************@netscape.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.