How can I get the name used to open an EventWaitHandle?

174 Views Asked by At

I am trying to implement a cross-process event architecture where processes can "subscribe" to events, and then "unsubscribe".

My initial tests using EventWaitHandle are promising (although I've read some negative comments about them, but please set that aside for now).

Since these things are named, and are in fact opened by name using OpenExisting, I was a little surprised to find that the EventWaitHandle class does not have a Name property, so that given a collection of them I can find the one for a given name.

So, given a collection of these things, is there no way to see what name was used to create each one?

0

There are 0 best solutions below