2 instantiations of RequestDelegateResult
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
299
return new
RequestDelegateResult
(finalRequestDelegate, AsReadOnlyList(endpointBuilder.Metadata));
Microsoft.AspNetCore.Routing (1)
Builder\EndpointRouteBuilderExtensions.cs (1)
216
return 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>
157
public static
RequestDelegateResult
Create(Delegate handler, RequestDelegateFactoryOptions? options)
173
/// <returns>The <see cref="
RequestDelegateResult
"/>.</returns>
175
public static
RequestDelegateResult
Create(Delegate handler, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null)
208
public static
RequestDelegateResult
Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory, RequestDelegateFactoryOptions? options)
227
public static
RequestDelegateResult
Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory = null, RequestDelegateFactoryOptions? options = null, RequestDelegateMetadataResult? metadataResult = null)
296
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 (82)
RequestDelegateFactoryTests.cs (74)
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,
694
var
resultFactory = RequestDelegateFactory.Create(
758
var
factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { ThrowOnBadRequest = true, DisableInferBodyFromParameters = true });
872
var
factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object });
891
var
factoryResult = RequestDelegateFactory.Create(action);
1139
var
factoryResult = RequestDelegateFactory.Create(action);
1161
var
requestDelegateResult = RequestDelegateFactory.Create(action);
1184
var
factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services });
1204
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1228
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1249
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1269
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1289
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1349
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1382
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1478
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1517
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1567
var
factoryResult = RequestDelegateFactory.Create(@delegate, new()
1670
var
factoryResult = RequestDelegateFactory.Create(routeHandler);
1748
var
factoryResult = RequestDelegateFactory.Create(@delegate, options);
1783
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1813
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1843
var
factoryResult = RequestDelegateFactory.Create(optionalQueryParam);
1870
var
factoryResult = RequestDelegateFactory.Create(actionWithExtensionsResult);
1910
var
factoryResult = RequestDelegateFactory.Create(@delegate);
1939
var
factoryResult = RequestDelegateFactory.Create(TestAction);
1972
var
factoryResult = RequestDelegateFactory.Create(TestAction);
2166
var
factoryResult = RequestDelegateFactory.Create(methodInfo!, null, new RequestDelegateFactoryOptions()
2209
var
factoryResult = RequestDelegateFactory.Create(methodInfo!, targetFactory, new RequestDelegateFactoryOptions()
2281
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2376
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2410
var
factoryResult = RequestDelegateFactory.Create(HandlerWithTaskAwait, new RequestDelegateFactoryOptions()
2495
var
factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
2523
var
result = RequestDelegateFactory.Create(@delegate);
2534
var
result = RequestDelegateFactory.Create(@delegate);
2546
var
result = RequestDelegateFactory.Create(@delegate);
2563
var
result = RequestDelegateFactory.Create(@delegate, options);
2582
var
result = RequestDelegateFactory.Create(@delegate);
2596
var
result = RequestDelegateFactory.Create(@delegate);
2610
var
result = RequestDelegateFactory.Create(@delegate);
2623
var
result = RequestDelegateFactory.Create(@delegate);
2636
var
result = RequestDelegateFactory.Create(@delegate);
2649
var
result = RequestDelegateFactory.Create(@delegate);
2662
var
result = RequestDelegateFactory.Create(@delegate);
2682
var
result = RequestDelegateFactory.Create(@delegate, options);
2704
var
result = RequestDelegateFactory.Create(@delegate, options);
2727
var
result = RequestDelegateFactory.Create(@delegate, options);
2750
var
result = RequestDelegateFactory.Create(@delegate, options);
2773
var
result = RequestDelegateFactory.Create(@delegate, options);
2794
var
result = RequestDelegateFactory.Create(@delegate, options);
2815
var
result = RequestDelegateFactory.Create(@delegate, options);
2849
var
result = RequestDelegateFactory.Create(@delegate, options);
2884
var
result = RequestDelegateFactory.Create(@delegate, options, metadataResult);
2941
var
result = RequestDelegateFactory.Create(@delegate);
2954
var
result = RequestDelegateFactory.Create(@delegate);
2967
var
result = RequestDelegateFactory.Create(@delegate);
2980
var
result = RequestDelegateFactory.Create(@delegate);
2993
var
result = RequestDelegateFactory.Create(@delegate);
3007
var
result = RequestDelegateFactory.Create(@delegate, options);
3022
var
result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider });
3037
var
result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider });
3066
var
result = RequestDelegateFactory.Create(initialRequestDelegate, options);
3081
var
result = RequestDelegateFactory.Create(requestDelegate, options);
3092
var
result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
3142
var
factoryResult = RequestDelegateFactory.Create(TestAction);
3191
var
factoryResult = RequestDelegateFactory.Create(TestAction);
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)
1548
var
requestDelegateResult = RequestDelegateFactory.Create(methodInfo, options: options);
Microsoft.AspNetCore.Routing (5)
Builder\EndpointRouteBuilderExtensions.cs (1)
203
static
RequestDelegateResult
CreateHandlerRequestDelegate(Delegate handler, RequestDelegateFactoryOptions options, RequestDelegateMetadataResult? metadataResult)
Builder\RouteHandlerServices.cs (2)
39
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createRequestDelegate)
69
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createRequestDelegate,
RouteEndpointDataSource.cs (2)
31
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createHandlerRequestDelegateFunc,
59
Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?,
RequestDelegateResult
> createHandlerRequestDelegateFunc,