public void AddInterceptor(IRawInterceptor interceptor, InterceptorType interceptorType = InterceptorType.Pre) { if (interceptorType == InterceptorType.Pre) { _preInterceptors.Add(interceptor); } else if (interceptorType == InterceptorType.Post) { _postInterceptors.Add(interceptor); } else if (interceptorType == InterceptorType.Unhandled) { _unhandledInterceptors.Add(interceptor); } else if (interceptorType == InterceptorType.Aborted) { _abortedInterceptors.Add(interceptor); } }
public void AddInterceptor(IRawInterceptor interceptor) { AddInterceptor(interceptor, InterceptorType.Pre); }