예제 #1
0
 public RequestHandler2 <T, R> Body <R>(IMapper mapper)
 => new RequestHandler2 <T, R>(
     Method,
     Path,
     Resolver,
     ParameterResolver.Body <R>(mapper),
     ErrorHandler,
     MediaTypeMapper);
예제 #2
0
 public RequestHandler3 <T, TR, TU> Body <TU>(IMapper mapper)
 => new RequestHandler3 <T, TR, TU>(
     Method,
     Path,
     ResolverParam1,
     ResolverParam2,
     ParameterResolver.Body <TU>(mapper),
     ErrorHandler,
     MediaTypeMapper);
예제 #3
0
 public RequestHandler4 <T, TR, TU, TI> Body <TI>()
 => new RequestHandler4 <T, TR, TU, TI>(
     Method,
     Path,
     ResolverParam1,
     ResolverParam2,
     ResolverParam3,
     ParameterResolver.Body <TI>(MediaTypeMapper),
     ErrorHandler,
     MediaTypeMapper);
예제 #4
0
 public RequestHandler5 <T, TR, TU, TI, TJ> Body <TJ>(MediaTypeMapper mediaTypeMapper)
 => new RequestHandler5 <T, TR, TU, TI, TJ>(
     Method,
     Path,
     ResolverParam1,
     ResolverParam2,
     ResolverParam3,
     ResolverParam4,
     ParameterResolver.Body <TJ>(mediaTypeMapper),
     ErrorHandler,
     mediaTypeMapper);
예제 #5
0
 public RequestHandler2 <T, R> Body <R>(MediaTypeMapper mediaTypeMapper)
 {
     MediaTypeMapper = mediaTypeMapper;
     return(new RequestHandler2 <T, R>(
                Method,
                Path,
                Resolver,
                ParameterResolver.Body <R>(mediaTypeMapper),
                ErrorHandler,
                mediaTypeMapper));
 }
예제 #6
0
 public RequestHandler3 <T, TR, TU> Body <TU>(MediaTypeMapper mediaTypeMapper)
 {
     MediaTypeMapper = mediaTypeMapper;
     return(new RequestHandler3 <T, TR, TU>(
                Method,
                Path,
                ResolverParam1,
                ResolverParam2,
                ParameterResolver.Body <TU>(mediaTypeMapper),
                ErrorHandler,
                MediaTypeMapper));
 }
예제 #7
0
 public RequestHandler1 <T> Body <T>()
 => new RequestHandler1 <T>(Method, Path, ParameterResolver.Body <T>(MediaTypeMapper), ErrorHandler, MediaTypeMapper);