2 instantiations of RequestDelegateResult
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
301return new RequestDelegateResult(finalRequestDelegate, AsReadOnlyList(endpointBuilder.Metadata));
Microsoft.AspNetCore.Routing (1)
Builder\EndpointRouteBuilderExtensions.cs (1)
216return new RequestDelegateResult(requestDelegate, metadata);
99 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)
158/// <returns>The <see cref="RequestDelegateResult"/>.</returns> 159public static RequestDelegateResult Create(Delegate handler, RequestDelegateFactoryOptions? options) 175/// <returns>The <see cref="RequestDelegateResult"/>.</returns> 177public static RequestDelegateResult Create(Delegate handler, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null) 210public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory, RequestDelegateFactoryOptions? options) 229public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory = null, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null) 298private 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); 2581var result = RequestDelegateFactory.Create(@delegate); 2595var result = RequestDelegateFactory.Create(@delegate); 2609var result = RequestDelegateFactory.Create(@delegate); 2622var result = RequestDelegateFactory.Create(@delegate); 2635var result = RequestDelegateFactory.Create(@delegate); 2648var result = RequestDelegateFactory.Create(@delegate); 2661var result = RequestDelegateFactory.Create(@delegate); 2681var result = RequestDelegateFactory.Create(@delegate, options); 2703var result = RequestDelegateFactory.Create(@delegate, options); 2725var result = RequestDelegateFactory.Create(@delegate, options); 2747var result = RequestDelegateFactory.Create(@delegate, options); 2769var result = RequestDelegateFactory.Create(@delegate, options); 2790var result = RequestDelegateFactory.Create(@delegate, options); 2811var result = RequestDelegateFactory.Create(@delegate, options); 2843var result = RequestDelegateFactory.Create(@delegate, options); 2878var result = RequestDelegateFactory.Create(@delegate, options, metadataResult); 2935var result = RequestDelegateFactory.Create(@delegate); 2948var result = RequestDelegateFactory.Create(@delegate); 2961var result = RequestDelegateFactory.Create(@delegate); 2974var result = RequestDelegateFactory.Create(@delegate); 2987var result = RequestDelegateFactory.Create(@delegate); 3001var result = RequestDelegateFactory.Create(@delegate, options); 3016var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3031var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3060var result = RequestDelegateFactory.Create(initialRequestDelegate, options); 3075var result = RequestDelegateFactory.Create(requestDelegate, options); 3086var result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 3136var factoryResult = RequestDelegateFactory.Create(TestAction); 3185var 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.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,