I can\'t get to the bottom of this error, because when the debugger is attached, it does not seem to occur.
Collection was modified; enumeration operatio
You can also lock your subscribers dictionary to prevent it from being modified whenever its being looped:
lock (subscribers) { foreach (var subscriber in subscribers) { //do something } }