Beispiel #1
0
        public static ITaskExecutor Create(
            ResolverType resolverType,
            params IExecutionEvents[] events)
        {
            var builder = new TaskExecutorBuilder()
                          .RegisterPipelineExecution(resolverType);

            foreach (var e in events)
            {
                builder.RegisterEvents(e);
            }

            return(builder.Build());
        }
Beispiel #2
0
        public static ITaskExecutor Create(
            ResolverType resolverType,
            params IExecutionEvents[] events)
        {
            var builder = new TaskExecutorBuilder();

            if (resolverType == ResolverType.Streaming)
            {
                builder.RegisterDataflowExecution();
            }

            foreach (var e in events)
            {
                builder.RegisterEvents(e);
            }

            return(builder.Build());
        }