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()); }
public async Task ProcessAsync(SampleRedisSagaStarterCommand message, CancellationToken cancellationToken) { await _bus.SendAsync(new SampleRedisSagaCommand()); }