Esempio n. 1
0
 public RegisterDispose(GlobalEventHandler <TMessage> handler, object key)
 {
     _handler = handler;
     _key     = key;
 }
Esempio n. 2
0
 public SimpleAwaiter(ICommandSender commandSender, GlobalEventHandler <TRespoand> handlerRegistry) : base(commandSender)
     => _handler = handlerRegistry.Register(this, t => HandleImpl(t));
Esempio n. 3
0
 public QueryAwaiter(GlobalEventHandler <QueryEvent <TRespond> > globalEventHandler)
 {
     _disposable       = globalEventHandler.Register(this, t => Handle(t));
     _asyncManualReset = new ManualResetEvent(false);
 }