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

            return(result);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
        public static IOnResponseMessage SendMessage(IMessage message)
        {
            var result = new FluentResultBuilder
            {
                Type       = FluentResultType.Message,
                Message    = message,
                MessageBus = MessageBus
            };

            return(result);
        }
Exemplo n.º 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);
        }