public virtual bool IsGoingToCreateProxyForImplementationType(TypeInfo implementationType)
        {
            if (implementationType == null)
            {
                throw new ArgumentNullException(nameof(implementationType));
            }

            return(implementationType.IsClass &&
                   AutoProxyCreationIncludeRules.Any(rule => rule(implementationType) == true) &&
                   AutoProxyCreationIgnoreRules.All(rule => rule(implementationType) == false));
        }
Example #2
0
 public virtual bool IsGoingToCreateProxyForImplementationType(TypeInfo implementationType)
 {
     return(AutoProxyCreationIncludeRules.Any(rule => rule(implementationType) == true) &&
            AutoProxyCreationIgnoreRules.All(rule => rule(implementationType) == false));
 }
 public virtual bool IsGoingToCreateProxyForService(TypeInfo serviceType)
 {
     return(AutoProxyCreationIncludeRules.Any(rule => rule(serviceType) == true) &&
            AutoProxyCreationIgnoreRules.All(rule => rule(serviceType) == false));
 }