Example #1
0
        private async Task <RedisMessage <TestCommand> > SendAndGetMessage()
        {
            var command = new TestCommand(Guid.NewGuid().ToString());
            await _bus.SendAsync(command);

            var messages = await _target.GetMessagesAsync(1);

            return(messages.First());
        }
Example #2
0
 public async Task ProcessAsync(SampleRedisSagaStarterCommand message, CancellationToken cancellationToken)
 {
     await _bus.SendAsync(new SampleRedisSagaCommand());
 }