Beispiel #1
0
 public IRequestHandler CreateRequestHandler(
     ITargetSelector selector,
     IMethodCallInterceptor interceptor,
     IRequestErrorHandler errors = null)
 {
     return(new RequestHandler(selector, _binder, _serializer, interceptor, errors));
 }
Beispiel #2
0
 public RequestHandler(ITargetSelector selector, IMethodBinder binder,
                       IMethodCallSerializer serializer, IMethodCallInterceptor interceptor)
 {
     _selector    = selector;
     _binder      = binder;
     _serializer  = serializer;
     _interceptor = interceptor;
 }
Beispiel #3
0
 public static void RegisterInterceptor(IMethodCallInterceptor interceptor)
 {
     _interceptors.Add(interceptor);
 }