public async Task <bool> Handle(T message)
 {
     try
     {
         return(await _inner.Handle(message));
     }
     finally
     {
         Tasks.DelaySendDone(_doneSignal);
     }
 }
示例#2
0
 public bool Handle(T message)
 {
     try
     {
         return(_inner.Handle(message));
     }
     finally
     {
         Tasks.DelaySendDone(_doneSignal);
     }
 }
示例#3
0
 private void Fail()
 {
     Tasks.DelaySendDone(_doneSignal);
     throw new TestException("Thrown by test ProcessMessage");
 }
 public Task <bool> Handle(GenericMessage message)
 {
     HandleWasCalled = true;
     Tasks.DelaySendDone(_doneSignal);
     return(Task.FromResult(true));
 }
 public bool Handle(GenericMessage message)
 {
     HandleWasCalled = true;
     Tasks.DelaySendDone(_doneSignal);
     return(true);
 }