public bool Handle(GenericMessage message)
 {
     HandleWasCalled = true;
     Tasks.DelaySendDone(_doneSignal);
     return(true);
 }
예제 #2
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));
 }