Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 public void AddInterceptor(IRawInterceptor interceptor)
 {
     AddInterceptor(interceptor, InterceptorType.Pre);
 }