public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
 {
     var key = new NamedTypeBuildKey(implementationType, name);
     var policy = policies.Get<InterceptorPolicy>(key);
     if (policy == null)
     {
         policy = new InterceptorPolicy();
         policies.Set(policy, key);
     }
     
     policy.AddInterceptor(this.interceptorContainer);
 }
Exemple #2
0
        public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
        {
            var key    = new NamedTypeBuildKey(implementationType, name);
            var policy = policies.Get <InterceptorPolicy>(key);

            if (policy == null)
            {
                policy = new InterceptorPolicy();
                policies.Set(policy, key);
            }

            policy.AddInterceptor(this.interceptorContainer);
        }