public async Task Handle(SendFromSagaMessage message, IMessageHandlerContext context) { await context.Reply(new ReplyFromSagaMessage()); await ReplyToOriginator(context, new ReplyToOriginatorFromSagaMessage()); await RequestTimeout(context, TimeSpan.FromMilliseconds(1), new TimeoutFromSaga()); }
public void Handle(SendFromSagaMessage message) { var replyFromSagaMessage = new ReplyFromSagaMessage(); Bus.Reply(replyFromSagaMessage); var replyToOriginatorFromSagaMessage = new ReplyToOriginatorFromSagaMessage(); ReplyToOriginator(replyToOriginatorFromSagaMessage); RequestTimeout(TimeSpan.FromMilliseconds(1), new TimeoutFromSaga()); }
public async Task Handle(SendFromSagaMessage message, IMessageHandlerContext context) { var replyFromSagaMessage = new ReplyFromSagaMessage(); await context.Reply(replyFromSagaMessage) .ConfigureAwait(false); var replyToOriginatorFromSagaMessage = new ReplyToOriginatorFromSagaMessage(); await ReplyToOriginator(context, replyToOriginatorFromSagaMessage) .ConfigureAwait(false); await RequestTimeout(context, TimeSpan.FromMilliseconds(1), new TimeoutFromSaga()) .ConfigureAwait(false); }
public void Handle(StartSaga1Message message) { var sendFromSagaMessage = new SendFromSagaMessage(); Bus.SendLocal(sendFromSagaMessage); }
public void Handle(SendFromSagaMessage message) { Bus.Reply(new ReplyFromSagaMessage()); RequestTimeout(TimeSpan.FromMilliseconds(1), new TimeoutFromSaga()); }