public RequestHandler2 <T, TR> Handle(ObjectHandler2 handler)
 {
     _executor = (request, param1, param2, mediaTypeMapper1, errorHandler1, logger)
                 => RequestObjectExecutor.ExecuteRequest(
         request,
         mediaTypeMapper1,
         () => handler.Invoke(param1, param2),
         errorHandler1,
         logger);
     return(this);
 }
Exemple #2
0
 public RequestHandler6 <T, TR, TU, TI, TJ, TK> Handle(ObjectHandler6 handler)
 {
     _executor = (request, param1, param2, param3, param4, param5, param6, mediaTypeMapper1, errorHandler1, logger)
                 => RequestObjectExecutor.ExecuteRequest(
         request,
         mediaTypeMapper1,
         () => handler.Invoke(param1, param2, param3, param4, param5, param6),
         errorHandler1,
         logger);
     return(this);
 }
 internal RequestObjectHandlerFake(Method method, string path, IErrorHandler errorHandler, RequestHandler0.ObjectHandler0 handler) : base(method, path, new List <IParameterResolver>())
 {
     _executor = (request, mediaTypeMapper1, errorHandler1, logger1) =>
                 RequestObjectExecutor.ExecuteRequest(request, mediaTypeMapper1, handler.Invoke, errorHandler1, logger1);
     _errorHandler = errorHandler;
 }
Exemple #4
0
 public RequestHandler0 Handle(ObjectHandler0 handler)
 {
     _executor = (request, mediaTypeMapper1, errorHandler1, logger)
                 => RequestObjectExecutor.ExecuteRequest(request, mediaTypeMapper1, () => handler.Invoke(), errorHandler1, logger);
     return(this);
 }