public async Task <bool> Handle(T message) { try { return(await _inner.Handle(message)); } finally { Tasks.DelaySendDone(_doneSignal); } }
public bool Handle(T message) { try { return(_inner.Handle(message)); } finally { Tasks.DelaySendDone(_doneSignal); } }
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); }