public async Task TestTwoAsync(TestCommandTwo command) => await Task.Run( async() => { await Task.Delay(10); return(ReceivedMessagesCount++); });
public void TestTwo(TestCommandTwo command) => ReceivedMessagesCount++;
public IMessage[] OnRequestReceived(TestCommandTwo message) { ReceivedMessagesCount++; return(new IMessage[] { new TestEventOne(), new TestEventTwo() }); }
public Task ProcessAsync(TestCommandTwo message, CancellationToken cancellationToken) { _countable.Count(); return(Task.CompletedTask); }