Exemple #1
0
 protected RulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer)
 {
     Pipeline = context;
     Context  = new RunspaceContext(Pipeline, writer);
     Source   = source;
     Reader   = reader;
     Writer   = writer;
 }
Exemple #2
0
        internal RunspaceContext(PipelineContext pipeline, PipelineWriter writer)
        {
            Writer        = writer;
            CurrentThread = this;
            Pipeline      = pipeline;

            _InconclusiveWarning = Pipeline.Option.Execution.InconclusiveWarning ?? ExecutionOption.Default.InconclusiveWarning.Value;
            _NotProcessedWarning = Pipeline.Option.Execution.NotProcessedWarning ?? ExecutionOption.Default.NotProcessedWarning.Value;
            _FailStream          = Pipeline.Option.Logging.RuleFail ?? LoggingOption.Default.RuleFail.Value;
            _PassStream          = Pipeline.Option.Logging.RulePass ?? LoggingOption.Default.RulePass.Value;

            _ObjectNumber = -1;
            _RuleTimer    = new Stopwatch();
            _Reason       = new List <string>();
        }