Esempio n. 1
0
 protected RulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer)
 {
     Context = context;
     Source  = source;
     Reader  = reader;
     Writer  = writer;
 }
Esempio n. 2
0
 protected RulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer)
 {
     Pipeline = context;
     Context  = new RunspaceContext(Pipeline, writer);
     Source   = source;
     Reader   = reader;
     Writer   = writer;
 }
Esempio n. 3
0
        internal InvokeRulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer, RuleOutcome outcome)
            : base(context, source, reader, writer)
        {
            HostHelper.ImportResource(source: Source, context: context);
            _RuleGraph = HostHelper.GetRuleBlockGraph(source: Source, context: context);
            RuleCount  = _RuleGraph.Count;

            if (RuleCount == 0)
            {
                Context.WarnRuleNotFound();
            }

            _Outcome           = outcome;
            _Summary           = new Dictionary <string, RuleSummaryRecord>();
            _ResultFormat      = context.Option.Output.As.Value;
            _SuppressionFilter = new RuleSuppressionFilter(context.Option.Suppression);
        }
Esempio n. 4
0
 internal GetBaselinePipeline(PipelineContext pipeline, Source[] source, PipelineReader reader, PipelineWriter writer, IResourceFilter filter)
     : base(pipeline, source, reader, writer)
 {
     _Filter = filter;
 }
 internal GetRuleHelpPipeline(PipelineContext pipeline, Source[] source, PipelineReader reader, PipelineWriter writer)
     : base(pipeline, source, reader, writer)
 {
     // Do nothing
 }
Esempio n. 6
0
 internal GetRulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer, bool includeDependencies)
     : base(context, source, reader, writer)
 {
     HostHelper.ImportResource(source: Source, context: context);
     _IncludeDependencies = includeDependencies;
 }