Exemple #1
0
 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));
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public RequestHandler1 <T> Query <T>(string name, T defaultValue)
 => new RequestHandler1 <T>(Method, Path, ParameterResolver.Query(name, defaultValue), ErrorHandler, MediaTypeMapper);
Exemple #5
0
 public RequestHandler1 <T> Body <T>(MediaTypeMapper mediaTypeMapper)
 {
     MediaTypeMapper = mediaTypeMapper;
     return(new RequestHandler1 <T>(Method, Path, ParameterResolver.Body <T>(mediaTypeMapper), ErrorHandler, mediaTypeMapper));
 }
Exemple #6
0
 public RequestHandler1 <T> Body <T>(IMapper mapper)
 => new RequestHandler1 <T>(Method, Path, ParameterResolver.Body <T>(mapper), ErrorHandler, MediaTypeMapper);
Exemple #7
0
 public RequestHandler1 <T> Param <T>()
 => new RequestHandler1 <T>(Method, Path, ParameterResolver.Path <T>(0), ErrorHandler, MediaTypeMapper);
Exemple #8
0
 public RequestHandler1 <Header> Header(string name)
 => new RequestHandler1 <Header>(Method, Path, ParameterResolver.Header(name), ErrorHandler, MediaTypeMapper);
Exemple #9
0
 public RequestHandler2 <T, R> Param <R>()
 => new RequestHandler2 <T, R>(Method, Path, Resolver, ParameterResolver.Path <R>(1), ErrorHandler, MediaTypeMapper);
Exemple #10
0
 public RequestHandler3 <T, TR, TU> Body <TU>()
 => new RequestHandler3 <T, TR, TU>(Method, Path, ResolverParam1, ResolverParam2, ParameterResolver.Body <TU>(MediaTypeMapper), ErrorHandler, MediaTypeMapper);
Exemple #11
0
 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);