private SimpleRule(RuleDescriptor ruleDescriptor, RuleOperationContext ruleOperationContext, RuleAction ruleAction) { Requires.NotNull(ruleDescriptor, nameof(ruleDescriptor)); Requires.NotNull(ruleOperationContext, nameof(ruleOperationContext)); this.RuleDescriptor = ruleDescriptor; this.RuleOperationContext = new RuleOperation(ruleOperationContext, ruleAction); }
internal SimpleRule(RuleDescriptor ruleDescriptor, List <Func <FormattingContext, bool> > contextFilters, RuleAction action) { Requires.NotNull(ruleDescriptor, nameof(ruleDescriptor)); Requires.NotNull(contextFilters, nameof(contextFilters)); this.RuleDescriptor = ruleDescriptor; this.RuleOperationContext = new RuleOperation(new RuleOperationContext(contextFilters), action); }
internal SimpleRule(RuleDescriptor ruleDescriptor, List<Func<FormattingContext, bool>> contextFilters, RuleAction action) { Requires.NotNull(ruleDescriptor, nameof(ruleDescriptor)); Requires.NotNull(contextFilters, nameof(contextFilters)); this.RuleDescriptor = ruleDescriptor; this.RuleOperationContext = new RuleOperation(new RuleOperationContext(contextFilters), action); }