public async Task Timeout(Saga1Timeout state, IMessageHandlerContext context) { await context.SendLocal(new StartSaga2 { DataId = Data.DataId }); MarkAsComplete(); }
public void Timeout(Saga1Timeout state) { MarkAsComplete(); if (state.ContextId != Context.Id) { return; } Context.Saga1TimeoutFired = true; }
public Task Timeout(Saga1Timeout state, IMessageHandlerContext context) { if (state.ContextId == TestContext.Id) { TestContext.Saga1TimeoutFired = true; } if (TestContext.Saga1TimeoutFired && TestContext.Saga2TimeoutFired) { MarkAsComplete(); } return(Task.FromResult(0)); }
public void Timeout(Saga1Timeout state) { Bus.SendLocal(new StartSaga2()); MarkAsComplete(); }