3

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?

  • 1
    You could save them in a dictionary where the key is the string used when you called the `OpenExisting` method. – Jeff B Jan 11 '17 at 14:29
  • 1
    Thanks Jeff. That's actually what I'm doing (exactly what I'm doing... have you been looking at my code??). But I'm still not sure why this is not something you can get out of the EventWantHandle object. – Timothy Blaisdell Jan 14 '17 at 07:35

0 Answers0