예제 #1
0
        public static IOnComplete RunCoroutine(ICoroutineThread coroutine, string name = null)
        {
            var result = new FluentResultBuilder
            {
                Type         = FluentResultType.CoroutineFunction,
                Coroutine    = coroutine,
                InstanceName = name
            };

            return(result);
        }
예제 #2
0
        public static IOnComplete Run(IEnumerable <ICoroutineResult> waitForItem, string name = null)
        {
            var result = new FluentResultBuilder
            {
                Type         = FluentResultType.FunctionWithoutResult,
                Enumerator   = waitForItem.GetEnumerator(),
                InstanceName = name
            };

            return(result);
        }
예제 #3
0
        public static IForEachItem ForEachItem(IEnumerable <ICoroutineResult> waitForItem, string name = null)
        {
            var result = new FluentResultBuilder
            {
                Type         = FluentResultType.ForeachFunction,
                Enumerator   = waitForItem.GetEnumerator(),
                InstanceName = name
            };

            return(result);
        }
예제 #4
0
        public static IOnResponseMessage SendMessage(IMessage message)
        {
            var result = new FluentResultBuilder
            {
                Type       = FluentResultType.Message,
                Message    = message,
                MessageBus = MessageBus
            };

            return(result);
        }
예제 #5
0
        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);
        }