public string RegisterHandler(IEventHandler handler) { _mut.WaitOne(); string ret = _rand.NextString(_ID_LENGTH); _handlers.Add(new sEventHandler(handler, ret)); _mut.ReleaseMutex(); return(ret); }
public string RegisterHandler(IEventHandler handler) { _mut.WaitOne(); string ret = _rand.NextString(_ID_LENGTH); _handlers.Add(new sEventHandler(handler, ret)); _mut.ReleaseMutex(); return(ret); }