문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top