Example #1
0
        private IEnumerator OneSagaEndsSoonerSaga()
        {
            yield return(Do.Put(new SagaAction("START")));

            yield return(Do.Fork(PutZeros(4)));

            yield return(Do.Fork(PutOnes(2)));

            yield return(Do.Put(new SagaAction("END")));
        }
Example #2
0
        private IEnumerator TwoForkedSagasWithOneCommandBeforeAndOneAfter()
        {
            yield return(Do.Put(new SagaAction("START")));

            yield return(Do.Fork(PutZeros(4)));

            yield return(Do.Fork(PutOnes(4)));

            yield return(Do.Put(new SagaAction("END")));
        }
Example #3
0
        private IEnumerator OneForkedSagaWithCycleInTheMainSaga()
        {
            yield return(Do.Put(new SagaAction("START")));

            yield return(Do.Fork(PutZeros(4)));

            for (var i = 0; i < 4; i++)
            {
                yield return(Do.Put(new SagaAction <int>("COUNT", 1)));
            }

            yield return(Do.Put(new SagaAction("END")));
        }
Example #4
0
    private IEnumerator RootSaga()
    {
        yield return(Do.Fork(ElapsedTime()));

        yield return(Do.Fork(Calulation()));
    }
Example #5
0
        private IEnumerator OneForkedActionWaitingForInputFromOtherForkedActionSaga()
        {
            yield return(Do.Fork(SagaWithTake()));

            yield return(Do.Fork(SagaWithPut()));
        }