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

            result.invokers = new List <KeyValuePair <Type, List <IRuleInvoker> > >(invokers);
            return(result);
        }
Exemplo 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;
 }
Exemplo n.º 3
0
 public InvokerRegistry Clone()
 {
     var result = new InvokerRegistry();
     result._invokers = new List<KeyValuePair<Type, List<IRuleInvoker>>>(_invokers);
     return result;
 }