protected override PipelineContext PrepareContext() { var instanceNameBinder = new InstanceNameBinder(_InstanceName); var context = new PipelineContext(GetOptionContext(), PrepareStream(), Writer, OutputVisitor, instanceNameBinder, _Convention); return(context); }
protected override PipelineContext PrepareContext() { var instanceNameBinder = new InstanceNameBinder(_InstanceName); var context = new PipelineContext(Option, Writer, OutputVisitor, instanceNameBinder); return(context); }
public PipelineContext(PSDocumentOption option, IPipelineWriter writer, Action <IDocumentResult, bool> _Output, InstanceNameBinder instanceNameBinder) { Option = option; LanguageMode = option.Execution.LanguageMode.GetValueOrDefault(ExecutionOption.Default.LanguageMode.Value); Filter = DocumentFilter.Create(Option.Document.Include, Option.Document.Tag); Writer = writer; InstanceNameBinder = instanceNameBinder; _OutputVisitor = _Output; }
public PipelineContext(OptionContext option, PipelineStream stream, IPipelineWriter writer, Action <IDocumentResult, bool> _Output, InstanceNameBinder instanceNameBinder, string[] convention) { Option = option; LanguageMode = option.Execution.LanguageMode.GetValueOrDefault(ExecutionOption.Default.LanguageMode.Value); Filter = DocumentFilter.Create(option.Document.Include, option.Document.Tag); Stream = stream ?? new PipelineStream(null, null); Writer = writer; InstanceNameBinder = instanceNameBinder; _OutputVisitor = _Output; Convention = convention; Selector = new Dictionary <string, SelectorVisitor>(); }