コード例 #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);
     }
 }
コード例 #2
0
ファイル: JEventBus.cs プロジェクト: Radomiej/JEventBus.net
 public void AddInterceptor(IRawInterceptor interceptor)
 {
     AddInterceptor(interceptor, InterceptorType.Pre);
 }