コード例 #1
0
        protected override PipelineContext PrepareContext()
        {
            var instanceNameBinder = new InstanceNameBinder(_InstanceName);
            var context            = new PipelineContext(GetOptionContext(), PrepareStream(), Writer, OutputVisitor, instanceNameBinder, _Convention);

            return(context);
        }
コード例 #2
0
ファイル: InvokePipeline.cs プロジェクト: mspaning/PSDocs
        protected override PipelineContext PrepareContext()
        {
            var instanceNameBinder = new InstanceNameBinder(_InstanceName);
            var context            = new PipelineContext(Option, Writer, OutputVisitor, instanceNameBinder);

            return(context);
        }
コード例 #3
0
ファイル: PipelineContext.cs プロジェクト: wonsil/PSDocs
 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;
 }
コード例 #4
0
 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>();
 }