Example #1
0
 public Task Handle(BackIntoSaga message, IMessageHandlerContext context)
 {
     context.LogInformation("Hello from {@Saga}. Message: {@Message}", nameof(TheSaga), message);
     MarkAsComplete();
     resetEvent.Set();
     return(Task.CompletedTask);
 }
Example #2
0
    public Task Handle(StartSaga message, IMessageHandlerContext context)
    {
        var logger = context.Logger();

        logger.Information("Hello from {@Saga}. Message: {@Message}", nameof(TheSaga), message);
        var backIntoSaga = new BackIntoSaga
        {
            Property = message.Property
        };

        return(context.SendLocal(backIntoSaga));
    }