コード例 #1
0
 public async Task TestTwoAsync(TestCommandTwo command) =>
 await Task.Run(
     async() =>
 {
     await Task.Delay(10);
     return(ReceivedMessagesCount++);
 });
コード例 #2
0
 public void TestTwo(TestCommandTwo command) => ReceivedMessagesCount++;
コード例 #3
0
        public IMessage[] OnRequestReceived(TestCommandTwo message)
        {
            ReceivedMessagesCount++;

            return(new IMessage[] { new TestEventOne(), new TestEventTwo() });
        }
コード例 #4
0
 public Task ProcessAsync(TestCommandTwo message, CancellationToken cancellationToken)
 {
     _countable.Count();
     return(Task.CompletedTask);
 }