public RequestHandler4 <T, TR, TU, TI> Body <TI>(MediaTypeMapper mediaTypeMapper) { MediaTypeMapper = mediaTypeMapper; return(new RequestHandler4 <T, TR, TU, TI>( Method, Path, ResolverParam1, ResolverParam2, ResolverParam3, ParameterResolver.Body <TI>(mediaTypeMapper), ErrorHandler, mediaTypeMapper)); }
internal RequestHandler2( Method method, string path, ParameterResolver <T> resolverParam1, ParameterResolver <TR> resolverParam2, IErrorHandler errorHandler, MediaTypeMapper mediaTypeMapper) : base(method, path, new List <IParameterResolver> { resolverParam1, resolverParam2 }, errorHandler, mediaTypeMapper) { ResolverParam1 = resolverParam1; ResolverParam2 = resolverParam2; }
internal RequestHandler5( Method method, string path, ParameterResolver <T> resolverParam1, ParameterResolver <TR> resolverParam2, ParameterResolver <TU> resolverParam3, ParameterResolver <TI> resolverParam4, ParameterResolver <TJ> resolverParam5, IErrorHandler errorHandler, MediaTypeMapper mediaTypeMapper) : base(method, path, new List <IParameterResolver> { resolverParam1, resolverParam2, resolverParam3, resolverParam4, resolverParam5 }, errorHandler, mediaTypeMapper) { ResolverParam1 = resolverParam1; ResolverParam2 = resolverParam2; ResolverParam3 = resolverParam3; ResolverParam4 = resolverParam4; ResolverParam5 = resolverParam5; }
public RequestHandler1 <T> Query <T>(string name, T defaultValue) => new RequestHandler1 <T>(Method, Path, ParameterResolver.Query(name, defaultValue), ErrorHandler, MediaTypeMapper);
public RequestHandler1 <T> Body <T>(MediaTypeMapper mediaTypeMapper) { MediaTypeMapper = mediaTypeMapper; return(new RequestHandler1 <T>(Method, Path, ParameterResolver.Body <T>(mediaTypeMapper), ErrorHandler, mediaTypeMapper)); }
public RequestHandler1 <T> Body <T>(IMapper mapper) => new RequestHandler1 <T>(Method, Path, ParameterResolver.Body <T>(mapper), ErrorHandler, MediaTypeMapper);
public RequestHandler1 <T> Param <T>() => new RequestHandler1 <T>(Method, Path, ParameterResolver.Path <T>(0), ErrorHandler, MediaTypeMapper);
public RequestHandler1 <Header> Header(string name) => new RequestHandler1 <Header>(Method, Path, ParameterResolver.Header(name), ErrorHandler, MediaTypeMapper);
public RequestHandler2 <T, R> Param <R>() => new RequestHandler2 <T, R>(Method, Path, Resolver, ParameterResolver.Path <R>(1), ErrorHandler, MediaTypeMapper);
public RequestHandler3 <T, TR, TU> Body <TU>() => new RequestHandler3 <T, TR, TU>(Method, Path, ResolverParam1, ResolverParam2, ParameterResolver.Body <TU>(MediaTypeMapper), ErrorHandler, MediaTypeMapper);
public RequestHandler3 <T, TR, TU> Query <TU>(string name, Type queryClass) => new RequestHandler3 <T, TR, TU>(Method, Path, ResolverParam1, ResolverParam2, ParameterResolver.Query <TU>(name), ErrorHandler, MediaTypeMapper);