public void AddInterceptor(IInterceptorContainer interceptorContainer) { this.interceptors.Add(interceptorContainer); }
public Intercept(IDynamicInterceptor interceptor) { Guard.ArgumentNotNull(interceptor, "interceptor"); this.interceptorContainer = new ConstantInterceptorContainer(interceptor); }
public Intercept(Type interceptorType) { Guard.ArgumentNotNull(interceptorType, "interceptorType"); this.interceptorContainer = new LazyCreatedInterceptorContainer(interceptorType); }