public static IOnComplete RunCoroutine(ICoroutineThread coroutine, string name = null) { var result = new FluentResultBuilder { Type = FluentResultType.CoroutineFunction, Coroutine = coroutine, InstanceName = name }; return(result); }
public static IOnComplete Run(IEnumerable <ICoroutineResult> waitForItem, string name = null) { var result = new FluentResultBuilder { Type = FluentResultType.FunctionWithoutResult, Enumerator = waitForItem.GetEnumerator(), InstanceName = name }; return(result); }
public static IForEachItem ForEachItem(IEnumerable <ICoroutineResult> waitForItem, string name = null) { var result = new FluentResultBuilder { Type = FluentResultType.ForeachFunction, Enumerator = waitForItem.GetEnumerator(), InstanceName = name }; return(result); }
public static IOnResponseMessage SendMessage(IMessage message) { var result = new FluentResultBuilder { Type = FluentResultType.Message, Message = message, MessageBus = MessageBus }; return(result); }
public static IOnComplete RunTask(Task taskToRun, string name = null) { var result = new FluentResultBuilder { Type = FluentResultType.FunctionWithoutResult, Task = taskToRun, Enumerator = RunTaskFunction(taskToRun).GetEnumerator(), InstanceName = name }; return(result); }