Пример #1
0
        /// <summary>
        /// Creates a new <see cref="RuleDrivenPolicy"/> object with a name, a set of matching rules
        /// and the names to use when resolving handlers.
        /// </summary>
        public RuleDrivenPolicy(string name, IMatchingRule[] matchingRules, string[] callHandlerNames)
            : base(name)
        {
            ruleSet = new MatchingRuleSet();
            ruleSet.AddRange(matchingRules);

            this.callHandlerNames = callHandlerNames;
        }
Пример #2
0
        /// <summary>
        /// Creates a new <see cref="RuleDrivenPolicy"/> object with a name, a set of matching rules
        /// and the names to use when resolving handlers.
        /// </summary>
        public RuleDrivenPolicy(string name, IMatchingRule[] matchingRules, string[] callHandlerNames)
            : base(name)
        {
            _ruleSet = new MatchingRuleSet();
            _ruleSet.AddRange(matchingRules);

            _callHandlerNames = callHandlerNames;
        }