Frage

in Process A I need to receive an event from Proces B. I decided to use EventWaitHandle. In both processes i write this code:

var evhandle = new EventWaitHandle(false, EventResetMode.AutoReset,"MyGUID1221");

then in process A i invoke Set() method:

evhandle.Set();

How i can to receive "MyGUID1221" event in process B and do some actions? How to make "MyGUID1221"Listener?

Thanks.

War es hilfreich?

Lösung

The "MyGUID121" is just the name for the system-wide event. You listen (read wait) for the event by using the WaitOne - method

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top