示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }