Exemple #1
0
                public async Task Timeout(Saga1Timeout state, IMessageHandlerContext context)
                {
                    await context.SendLocal(new StartSaga2
                    {
                        DataId = Data.DataId
                    });

                    MarkAsComplete();
                }
Exemple #2
0
                public void Timeout(Saga1Timeout state)
                {
                    MarkAsComplete();

                    if (state.ContextId != Context.Id)
                    {
                        return;
                    }
                    Context.Saga1TimeoutFired = true;
                }
Exemple #3
0
                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();
 }