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); }
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); }