2 instantiations of RequestDelegateResult
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
299return new RequestDelegateResult(finalRequestDelegate, AsReadOnlyList(endpointBuilder.Metadata));
Microsoft.AspNetCore.Routing (1)
Builder\EndpointRouteBuilderExtensions.cs (1)
216return new RequestDelegateResult(requestDelegate, metadata);
100 references to RequestDelegateResult
Microsoft.AspNetCore.Http.Abstractions (1)
RequestDelegateResult.cs (1)
12/// Creates a new instance of <see cref="RequestDelegateResult"/>.
Microsoft.AspNetCore.Http.Extensions (11)
RequestDelegateFactory.cs (7)
156/// <returns>The <see cref="RequestDelegateResult"/>.</returns> 157public static RequestDelegateResult Create(Delegate handler, RequestDelegateFactoryOptions? options) 173/// <returns>The <see cref="RequestDelegateResult"/>.</returns> 175public static RequestDelegateResult Create(Delegate handler, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null) 208public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory, RequestDelegateFactoryOptions? options) 227public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory = null, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null) 296private static RequestDelegateResult CreateRequestDelegateResult(RequestDelegate finalRequestDelegate, EndpointBuilder endpointBuilder)
RequestDelegateFactoryOptions.cs (4)
37/// The mutable <see cref="Builder.EndpointBuilder"/> used to assist in the creation of the <see cref="RequestDelegateResult.RequestDelegate"/>. 40/// <see cref="EndpointBuilder.RequestDelegate"/> will be the same as <see cref="RequestDelegateResult.RequestDelegate"/>. 43/// Any metadata already in <see cref="EndpointBuilder.Metadata"/> will be included in <see cref="RequestDelegateResult.EndpointMetadata" /> <b>before</b> 44/// most metadata inferred during creation of the <see cref="RequestDelegateResult.RequestDelegate"/> and <b>before</b> any metadata provided by types in
Microsoft.AspNetCore.Http.Extensions.Tests (82)
RequestDelegateFactoryTests.cs (74)
106var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 138var factoryResult = RequestDelegateFactory.Create(methodInfo!); 184var factoryResult = RequestDelegateFactory.Create(methodInfo!, _ => GetTarget()); 242var factoryResult = RequestDelegateFactory.Create((int? id, HttpContext httpContext) => 273var factoryResult = RequestDelegateFactory.Create(methodInfo!); 587var factoryResult = RequestDelegateFactory.Create(action); 614var factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { DisableInferBodyFromParameters = true }); 640var factoryResult = RequestDelegateFactory.Create((HttpContext context, 665var factoryResult = RequestDelegateFactory.Create((HttpContext context, 694var resultFactory = RequestDelegateFactory.Create( 758var factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { ThrowOnBadRequest = true, DisableInferBodyFromParameters = true }); 872var factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object }); 891var factoryResult = RequestDelegateFactory.Create(action); 1139var factoryResult = RequestDelegateFactory.Create(action); 1161var requestDelegateResult = RequestDelegateFactory.Create(action); 1184var factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services }); 1204var factoryResult = RequestDelegateFactory.Create(TestAction); 1228var factoryResult = RequestDelegateFactory.Create(TestAction); 1249var factoryResult = RequestDelegateFactory.Create(TestAction); 1269var factoryResult = RequestDelegateFactory.Create(TestAction); 1289var factoryResult = RequestDelegateFactory.Create(TestAction); 1349var factoryResult = RequestDelegateFactory.Create(@delegate); 1382var factoryResult = RequestDelegateFactory.Create(@delegate); 1478var factoryResult = RequestDelegateFactory.Create(@delegate); 1517var factoryResult = RequestDelegateFactory.Create(@delegate); 1567var factoryResult = RequestDelegateFactory.Create(@delegate, new() 1670var factoryResult = RequestDelegateFactory.Create(routeHandler); 1748var factoryResult = RequestDelegateFactory.Create(@delegate, options); 1783var factoryResult = RequestDelegateFactory.Create(optionalQueryParam); 1813var factoryResult = RequestDelegateFactory.Create(optionalQueryParam); 1843var factoryResult = RequestDelegateFactory.Create(optionalQueryParam); 1870var factoryResult = RequestDelegateFactory.Create(actionWithExtensionsResult); 1910var factoryResult = RequestDelegateFactory.Create(@delegate); 1939var factoryResult = RequestDelegateFactory.Create(TestAction); 1972var factoryResult = RequestDelegateFactory.Create(TestAction); 2166var factoryResult = RequestDelegateFactory.Create(methodInfo!, null, new RequestDelegateFactoryOptions() 2209var factoryResult = RequestDelegateFactory.Create(methodInfo!, targetFactory, new RequestDelegateFactoryOptions() 2281var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2376var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2410var factoryResult = RequestDelegateFactory.Create(HandlerWithTaskAwait, new RequestDelegateFactoryOptions() 2495var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2523var result = RequestDelegateFactory.Create(@delegate); 2534var result = RequestDelegateFactory.Create(@delegate); 2546var result = RequestDelegateFactory.Create(@delegate); 2563var result = RequestDelegateFactory.Create(@delegate, options); 2582var result = RequestDelegateFactory.Create(@delegate); 2596var result = RequestDelegateFactory.Create(@delegate); 2610var result = RequestDelegateFactory.Create(@delegate); 2623var result = RequestDelegateFactory.Create(@delegate); 2636var result = RequestDelegateFactory.Create(@delegate); 2649var result = RequestDelegateFactory.Create(@delegate); 2662var result = RequestDelegateFactory.Create(@delegate); 2682var result = RequestDelegateFactory.Create(@delegate, options); 2704var result = RequestDelegateFactory.Create(@delegate, options); 2727var result = RequestDelegateFactory.Create(@delegate, options); 2750var result = RequestDelegateFactory.Create(@delegate, options); 2773var result = RequestDelegateFactory.Create(@delegate, options); 2794var result = RequestDelegateFactory.Create(@delegate, options); 2815var result = RequestDelegateFactory.Create(@delegate, options); 2849var result = RequestDelegateFactory.Create(@delegate, options); 2884var result = RequestDelegateFactory.Create(@delegate, options, metadataResult); 2941var result = RequestDelegateFactory.Create(@delegate); 2954var result = RequestDelegateFactory.Create(@delegate); 2967var result = RequestDelegateFactory.Create(@delegate); 2980var result = RequestDelegateFactory.Create(@delegate); 2993var result = RequestDelegateFactory.Create(@delegate); 3007var result = RequestDelegateFactory.Create(@delegate, options); 3022var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3037var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3066var result = RequestDelegateFactory.Create(initialRequestDelegate, options); 3081var result = RequestDelegateFactory.Create(requestDelegate, options); 3092var result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 3142var factoryResult = RequestDelegateFactory.Create(TestAction); 3191var factoryResult = RequestDelegateFactory.Create(TestAction);
RequestDelegateFactoryTests.FormMapping.cs (7)
54var factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult); 101var factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult); 149var factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult); 196var factoryResult = RequestDelegateFactory.Create(TestAction); 229var factoryResult = RequestDelegateFactory.Create(TestAction); 277var factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult); 299var factoryResult = RequestDelegateFactory.Create(TestAction);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
326var factoryResult = RequestDelegateFactory.Create((HttpContext context, IFormFile file) =>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1548var requestDelegateResult = RequestDelegateFactory.Create(methodInfo, options: options);
Microsoft.AspNetCore.Routing (5)
Builder\EndpointRouteBuilderExtensions.cs (1)
203static RequestDelegateResult CreateHandlerRequestDelegate(Delegate handler, RequestDelegateFactoryOptions options, RequestDelegateMetadataResult? metadataResult)
Builder\RouteHandlerServices.cs (2)
39Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate) 69Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate,
RouteEndpointDataSource.cs (2)
31Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc, 59Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc,