2 instantiations of RequestDelegateResult
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
301
return new
RequestDelegateResult
(finalRequestDelegate, AsReadOnlyList(endpointBuilder.Metadata));
Microsoft.AspNetCore.Routing (1)
Builder\EndpointRouteBuilderExtensions.cs (1)
216
return new
RequestDelegateResult
(requestDelegate, metadata);
105 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>
159
public static
RequestDelegateResult
Create(Delegate handler, RequestDelegateFactoryOptions? options)
175
/// <returns>The <see cref="
RequestDelegateResult
"/>.</returns>
177
public static
RequestDelegateResult
Create(Delegate handler, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null)
210
public static
RequestDelegateResult
Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory, RequestDelegateFactoryOptions? options)
229
public static
RequestDelegateResult
Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory = null, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null)
298
private 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 (86)
RequestDelegateFactoryTests.cs (76)
106
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
138
var
factoryResult = RequestDelegateFactory.Create(methodInfo!);
184
var
factoryResult = RequestDelegateFactory.Create(methodInfo!, _ => GetTarget());
242
var
factoryResult = RequestDelegateFactory.Create((int? id, HttpContext httpContext) =>
273
var
factoryResult = RequestDelegateFactory.Create(methodInfo!);
587
var
factoryResult = RequestDelegateFactory.Create(action);
614
var
factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { DisableInferBodyFromParameters = true });
640
var
factoryResult = RequestDelegateFactory.Create((HttpContext context,
665
var
factoryResult = RequestDelegateFactory.Create((HttpContext context,
696
var
factoryResult = RequestDelegateFactory.Create(
722
var
resultFactory = RequestDelegateFactory.Create(
786
var
factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { ThrowOnBadRequest = true, DisableInferBodyFromParameters = true });
900
var
factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object });
919
var
factoryResult = RequestDelegateFactory.Create(action);
1167
var
factoryResult = RequestDelegateFactory.Create(action);
1189
var
requestDelegateResult = RequestDelegateFactory.Create(action);
1212
var
factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services });
1232
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1256
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1277
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1297
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1317
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1377
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1410
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1506
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1545
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1595
var
factoryResult = RequestDelegateFactory.Create(@delegate, new()
1698
var
factoryResult = RequestDelegateFactory.Create(routeHandler);
1776
var
factoryResult = RequestDelegateFactory.Create(@delegate, options);
1811
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1841
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1871
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1898
var
factoryResult = RequestDelegateFactory.Create(actionWithExtensionsResult);
1938
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1967
var
factoryResult = RequestDelegateFactory.Create(TestAction);
2000
var
factoryResult = RequestDelegateFactory.Create(TestAction);
2194
var
factoryResult = RequestDelegateFactory.Create(methodInfo!, null, new RequestDelegateFactoryOptions()
2237
var
factoryResult = RequestDelegateFactory.Create(methodInfo!, targetFactory, new RequestDelegateFactoryOptions()
2309
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2404
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2438
var
factoryResult = RequestDelegateFactory.Create(HandlerWithTaskAwait, new RequestDelegateFactoryOptions()
2523
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2551
var
result = RequestDelegateFactory.Create(@delegate);
2562
var
result = RequestDelegateFactory.Create(@delegate);
2574
var
result = RequestDelegateFactory.Create(@delegate);
2591
var
result = RequestDelegateFactory.Create(@delegate, options);
2610
var
result = RequestDelegateFactory.Create(@delegate);
2624
var
result = RequestDelegateFactory.Create(@delegate);
2638
var
result = RequestDelegateFactory.Create(@delegate);
2651
var
result = RequestDelegateFactory.Create(@delegate);
2664
var
result = RequestDelegateFactory.Create(@delegate);
2677
var
result = RequestDelegateFactory.Create(@delegate);
2690
var
result = RequestDelegateFactory.Create(@delegate);
2710
var
result = RequestDelegateFactory.Create(@delegate, options);
2733
var
result = RequestDelegateFactory.Create(@delegate, options);
2756
var
result = RequestDelegateFactory.Create(@delegate, options);
2779
var
result = RequestDelegateFactory.Create(@delegate, options);
2802
var
result = RequestDelegateFactory.Create(@delegate, options);
2823
var
result = RequestDelegateFactory.Create(@delegate, options);
2844
var
result = RequestDelegateFactory.Create(@delegate, options);
2880
var
result = RequestDelegateFactory.Create(@delegate, options);
2915
var
result = RequestDelegateFactory.Create(@delegate, options, metadataResult);
2972
var
result = RequestDelegateFactory.Create(@delegate);
2985
var
result = RequestDelegateFactory.Create(@delegate);
2998
var
result = RequestDelegateFactory.Create(@delegate);
3011
var
result = RequestDelegateFactory.Create(@delegate);
3024
var
result = RequestDelegateFactory.Create(@delegate);
3038
var
result = RequestDelegateFactory.Create(@delegate, options);
3053
var
result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider });
3068
var
result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider });
3097
var
result = RequestDelegateFactory.Create(initialRequestDelegate, options);
3112
var
result = RequestDelegateFactory.Create(requestDelegate, options);
3123
var
result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
3173
var
factoryResult = RequestDelegateFactory.Create(TestAction);
3226
var
factoryResult = RequestDelegateFactory.Create(TestAction);
3271
var
factoryResult = RequestDelegateFactory.Create(TestAction);
RequestDelegateFactoryTests.EndpointFilters.cs (2)
51
var
result = RequestDelegateFactory.Create(@delegate, options);
95
var
result = RequestDelegateFactory.Create(@delegate, options);
RequestDelegateFactoryTests.FormMapping.cs (7)
54
var
factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult);
101
var
factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult);
149
var
factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult);
196
var
factoryResult = RequestDelegateFactory.Create(TestAction);
229
var
factoryResult = RequestDelegateFactory.Create(TestAction);
277
var
factoryResult = RequestDelegateFactory.Create(TestAction, options, metadataResult);
299
var
factoryResult = RequestDelegateFactory.Create(TestAction);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
326
var
factoryResult = RequestDelegateFactory.Create((HttpContext context, IFormFile file) =>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1791
var
requestDelegateResult = RequestDelegateFactory.Create(methodInfo, options: options);
Microsoft.AspNetCore.Routing (6)
Builder\EndpointRouteBuilderExtensions.cs (1)
203
static
RequestDelegateResult
CreateHandlerRequestDelegate(Delegate handler, RequestDelegateFactoryOptions options, RequestDelegateMetadataResult? metadataResult)
Builder\RouteHandlerServices.cs (2)
40
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createRequestDelegate)
70
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createRequestDelegate,
RouteEndpointDataSource.cs (3)
37
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createHandlerRequestDelegateFunc,
65
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createHandlerRequestDelegateFunc,
348
public required Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> CreateHandlerRequestDelegateFunc { get; init; }