internal ICompletes <Response> Execute(Request request, T param1, ILogger logger)
        {
            Func <ICompletes <Response> > exec = ()
                                                 => _executor?.Invoke(request, param1, MediaTypeMapper, ErrorHandler, logger) !;

            return(RunParamExecutor(_executor, () => RequestExecutor.ExecuteRequest(exec, ErrorHandler, logger)));
        }
 public RequestHandler4 <T, R, U, I>?Handle(Handler4 handler)
 {
     _executor = (request, param1, param2, param3, param4, mediaTypeMapper1, errorHandler1, logger1)
                 => RequestExecutor.ExecuteRequest(() => handler.Invoke(param1, param2, param3, param4), errorHandler1, logger1);
     return(this);
 }
 public RequestHandler1 <T>?Handle(Handler1 handler)
 {
     _executor = (request, param1, mediaTypeMapper1, errorHandler1, logger1)
                 => RequestExecutor.ExecuteRequest(() => handler.Invoke(param1), errorHandler1, logger1);
     return(this);
 }
Beispiel #4
0
 public RequestHandler0?Handle(Handler0 handler)
 {
     _executor = (request, mediaTypeMapper1, errorHandler1, logger)
                 => RequestExecutor.ExecuteRequest(() => handler.Invoke(), errorHandler1, logger);
     return(this);
 }