public Task Handle(GroupPendingEvent message, IMessageHandlerContext context) { TestContext.DidSaga2EventHandlerGetInvoked = true; Console.Out.WriteLine("Saga2 received GroupPendingEvent for RunId: {0} and MarkAsComplete", message.DataId); MarkAsComplete(); return(Task.FromResult(0)); }
public Task Handle(GroupPendingEvent message, IMessageHandlerContext context) { return(context.SendLocal(new CompleteSaga1Now { DataId = message.DataId })); }
public Task Handle(GroupPendingEvent message, IMessageHandlerContext context) { Console.Out.WriteLine("Saga1 received GroupPendingEvent for RunId: {0}", message.DataId); return(context.SendLocal(new CompleteSaga1Now { DataId = message.DataId })); }
public void Handle(GroupPendingEvent message) { Data.DataId = message.DataId; Console.Out.WriteLine("Saga1 received GroupPendingEvent for DataId: {0}", message.DataId); Bus.SendLocal(new CompleteSaga1Now { DataId = message.DataId }); }
public void Handle(GroupPendingEvent message) { Data.DataId = message.DataId; Console.Out.WriteLine("Saga1 received GroupPendingEvent for DataId: {0}", message.DataId); Context.DidSaga1EventHandlerGetInvoked = true; Bus.SendLocal(new CompleteSaga1Start { DataId = message.DataId }); }
public Task Handle(GroupPendingEvent message, IMessageHandlerContext context) { TestContext.DidSaga2EventHandlerGetInvoked = true; MarkAsComplete(); return(Task.FromResult(0)); }
public void Handle(GroupPendingEvent message) { Context.DidSaga2EventHandlerGetInvoked = true; Console.Out.WriteLine("Saga2 received GroupPendingEvent for DataId: {0} and MarkAsComplete", message.DataId); MarkAsComplete(); }