Exemple #1
0
        public ExecutionContext(IExecutionHandler executionHandler, OperationConsoleFactory consoleFactory, ExecutionTarget target)
        {
            var targetedHandler = executionHandler as ITargetedExecutionHandler;

            if (targetedHandler != null)
            {
                target = targetedHandler.Target ?? target;
            }

            this.executionHandler = executionHandler;
            this.consoleFactory   = consoleFactory;
            this.executionTarget  = target;
        }
 public CustomConsoleFactory(OperationConsoleFactory factory, CancellationTokenSource cs)
 {
     this.factory = factory;
     cancelSource = cs;
 }
Exemple #3
0
 public ExecutionContext(IExecutionMode executionMode, OperationConsoleFactory consoleFactory, ExecutionTarget target)
     : this(executionMode.ExecutionHandler, consoleFactory, target)
 {
 }