Beispiel #1
0
 public PSRuleOption()
 {
     // Set defaults
     Binding       = new BindingOption();
     Configuration = new ConfigurationOption();
     Input         = new InputOption();
     Logging       = new LoggingOption();
     Output        = new OutputOption();
     Suppression   = new SuppressionOption();
     Execution     = new ExecutionOption();
     Pipeline      = new PipelineHook();
     Rule          = new RuleOption();
 }
Beispiel #2
0
        private PSRuleOption(string sourcePath, PSRuleOption option)
        {
            SourcePath = sourcePath;

            // Set from existing option instance
            Binding       = new BindingOption(option.Binding);
            Configuration = new ConfigurationOption(option.Configuration);
            Input         = new InputOption(option.Input);
            Logging       = new LoggingOption(option.Logging);
            Output        = new OutputOption(option.Output);
            Suppression   = new SuppressionOption(option.Suppression);
            Execution     = new ExecutionOption(option.Execution);
            Pipeline      = new PipelineHook(option.Pipeline);
            Rule          = new RuleOption(option.Rule);
        }
Beispiel #3
0
 public PipelineHook(PipelineHook option)
 {
     BindTargetName = option?.BindTargetName ?? new List <BindTargetName>();
     BindTargetType = option?.BindTargetType ?? new List <BindTargetName>();
 }
Beispiel #4
0
 public PipelineHook(PipelineHook option)
 {
     BindTargetName = option.BindTargetName;
     BindTargetType = option.BindTargetType;
 }