private ActionInfo HandleEffectResult(ActionInfo result) { if (result.Type == ActionInfoType.SubProcess) { var resolved = Utils.Flatten(result.GetPayload <IEnumerator>()); this.EnqueueSubProcess(new SagaProcess($"{this.Name} >> Sub", this.Saga, resolved, true)); return(new ActionInfo(ActionInfoType.Noop, null)); } return(result); }