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"))); }
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"))); }
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"))); }
private IEnumerator RootSaga() { yield return(Do.Fork(ElapsedTime())); yield return(Do.Fork(Calulation())); }
private IEnumerator OneForkedActionWaitingForInputFromOtherForkedActionSaga() { yield return(Do.Fork(SagaWithTake())); yield return(Do.Fork(SagaWithPut())); }