473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Event subscribers

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
1 1195
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pavils Jurjans | last post by:
Hello, I wanted to propose a small class that would help to overcome the feature that's missing in MSIE. I'd like to get some feedback from people and, perhaps, improvements in code/other ideas:...
4
by: Greg Patrick | last post by:
Let's say I have a Form and I create a delegate (MyDelegate) and an event (SomethingHappened) for that form. Now other classes add their delegate to the event, e.g. theForm.SomethingHappened +=...
1
by: alexis rzewski | last post by:
I have a design in place for a .NET app coded in C# in which the business object drives the appearence of the UI and when the business object experiences a change, it notifies the various UIs via...
6
by: Tim | last post by:
Hi, I have a module that acts as a publisher of events. The clients subscribe for the events using the '+=' operator. Instead, I would like the clients to call a method like "RegisterForXEvent"...
6
by: Peter M. | last post by:
Hi all, If an event has multiple subscribers, is it possible to cancel the invocation of event handlers from an event handler? Or to be more specific: I'm subscribing to the ColumnChanging...
4
by: sloan | last post by:
I"m trying to figure out what concept I'm missing here, or if its not a good idea .. or what. Here is my example.. code is below. I have an employee class. It has an event that can be raised....
6
by: sjoshi | last post by:
I have a derived class OraBackup which has a method that calls stored procedure on Oracledb to get status of backup job. Now the base class publishes an event like this: public delegate void...
1
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi Is there a way to get a list of Subscribers to an Event ??? Thanks
3
by: Smithers | last post by:
In consideration of the brief sample code at the following link... http://msdn2.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx .... when we set e.Cancel = true,...
4
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post by:
Hi all, Recently I found an interesting question on C# forums about clearing event handlers of an event. I tried to give it a solution, but failed. I am interested to know how you guys take...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.