private void AddDefaultTypeInterceptor(Type typeToIntercept, IPolicyList policies)
        {
            ITypeInterceptionPolicy policy;

            if (this.interceptor != null)
            {
                policy = new FixedTypeInterceptionPolicy((ITypeInterceptor)this.interceptor);
            }
            else
            {
                policy = new ResolvedTypeInterceptionPolicy(this.interceptorKey);
            }

            policies.Set <ITypeInterceptionPolicy>(policy, typeToIntercept);
        }
        private void AddDefaultTypeInterceptor(Type typeToIntercept, IPolicyList policies)
        {
            ITypeInterceptionPolicy policy;

            if(interceptor != null)
            {
                policy = new FixedTypeInterceptionPolicy((ITypeInterceptor)interceptor);
            }
            else
            {
                policy = new ResolvedTypeInterceptionPolicy(interceptorKey);
            }

            policies.Set<ITypeInterceptionPolicy>(policy, typeToIntercept);

        }