Esempio n. 1
0
        public InvokerRegistry Clone()
        {
            var result = new InvokerRegistry();

            result.invokers = new List <KeyValuePair <Type, List <IRuleInvoker> > >(invokers);
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a Rules Engine.
 /// </summary>
 /// <param name="basedOn">Copies rules from base Engine</param>
 public RulesEngine(RulesEngine basedOn)
 {
     if (basedOn == null)
     {
         throw new ArgumentNullException("basedOn");
     }
     _registry        = basedOn._registry.Clone();
     _expressionCache = basedOn._expressionCache;
 }
Esempio n. 3
0
 public InvokerRegistry Clone()
 {
     var result = new InvokerRegistry();
     result._invokers = new List<KeyValuePair<Type, List<IRuleInvoker>>>(_invokers);
     return result;
 }