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