2 instantiations of RequestDelegateFactoryOptions
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1790
var options = new
RequestDelegateFactoryOptions
{ ServiceProvider = serviceProvider, DisableInferBodyFromParameters = shouldDisableInferredBodyForMethod };
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
291
return
new
()
51 references to RequestDelegateFactoryOptions
Microsoft.AspNetCore.Http.Extensions (27)
RequestDelegateFactory.cs (22)
135
/// Returns metadata inferred automatically for the <see cref="RequestDelegate"/> created by <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/>.
138
/// <param name="methodInfo">The <see cref="MethodInfo"/> for the route handler to be passed to <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/>.</param>
139
/// <param name="options">The options that will be used when calling <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/>.</param>
140
/// <returns>The <see cref="RequestDelegateMetadataResult"/> to be passed to <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/>.</returns>
141
public static RequestDelegateMetadataResult InferMetadata(MethodInfo methodInfo,
RequestDelegateFactoryOptions
? options = null)
157
/// <param name="options">The <see cref="
RequestDelegateFactoryOptions
"/> used to configure the behavior of the handler.</param>
159
public static RequestDelegateResult Create(Delegate handler,
RequestDelegateFactoryOptions
? options)
168
/// <param name="options">The <see cref="
RequestDelegateFactoryOptions
"/> used to configure the behavior of the handler.</param>
170
/// The result returned from <see cref="InferMetadata(MethodInfo,
RequestDelegateFactoryOptions
?)"/> if that was used to inferring metadata before creating the final RequestDelegate.
171
/// If <see langword="null"/>, this call to <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/> method will infer the metadata that
172
/// <see cref="InferMetadata(MethodInfo,
RequestDelegateFactoryOptions
?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="
RequestDelegateFactoryOptions
.EndpointBuilder"/>
177
public static RequestDelegateResult Create(Delegate handler,
RequestDelegateFactoryOptions
? options = null, RequestDelegateMetadataResult? metadataResult = null)
208
/// <param name="options">The <see cref="
RequestDelegateFactoryOptions
"/> used to configure the behavior of the handler.</param>
210
public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory,
RequestDelegateFactoryOptions
? options)
220
/// <param name="options">The <see cref="
RequestDelegateFactoryOptions
"/> used to configure the behavior of the handler.</param>
222
/// The result returned from <see cref="InferMetadata(MethodInfo,
RequestDelegateFactoryOptions
?)"/> if that was used to inferring metadata before creating the final RequestDelegate.
223
/// If <see langword="null"/>, this call to <see cref="Create(Delegate,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult?)"/> method will infer the metadata that
224
/// <see cref="InferMetadata(MethodInfo,
RequestDelegateFactoryOptions
?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="
RequestDelegateFactoryOptions
.EndpointBuilder"/>
229
public static RequestDelegateResult Create(MethodInfo methodInfo, Func<HttpContext, object>? targetFactory = null,
RequestDelegateFactoryOptions
? options = null, RequestDelegateMetadataResult? metadataResult = null)
266
private static RequestDelegateFactoryContext CreateFactoryContext(
RequestDelegateFactoryOptions
? options, RequestDelegateMetadataResult? metadataResult = null, Delegate? handler = null)
RequestDelegateFactoryOptions.cs (2)
39
/// The <see cref="EndpointBuilder.RequestDelegate"/> must be <see langword="null"/>. After the call to <see cref="RequestDelegateFactory.Create(Delegate,
RequestDelegateFactoryOptions
?)"/>,
46
/// <see cref="IAcceptsMetadata"/> that <see cref="RequestDelegateFactory.Create(Delegate,
RequestDelegateFactoryOptions
?)"/> infers automatically
RequestDelegateMetadataResult.cs (3)
7
/// The metadata inferred by <see cref="RequestDelegateFactory.InferMetadata(System.Reflection.MethodInfo, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
?)"/>.
8
/// <see cref="
RequestDelegateFactoryOptions
.EndpointBuilder"/> will be automatically populated with this metadata if provided.
9
/// If this is passed to <see cref="RequestDelegateFactory.Create(Delegate, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
?, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?)"/>,
Microsoft.AspNetCore.Identity (3)
GeneratedRouteBuilderExtensions.g.cs (3)
52
using MetadataPopulator = System.Func<System.Reflection.MethodInfo, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
?, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult>;
53
using RequestDelegateFactoryFunc = System.Func<System.Delegate, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?, Microsoft.AspNetCore.Http.RequestDelegateResult>;
1522
public LogOrThrowExceptionHelper(IServiceProvider? serviceProvider,
RequestDelegateFactoryOptions
? options)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
1790
var
options = new RequestDelegateFactoryOptions { ServiceProvider = serviceProvider, DisableInferBodyFromParameters = shouldDisableInferredBodyForMethod };
1818
private static ApiDescription GetApiDescription(Delegate action, string? pattern = null, string? displayName = null, IEnumerable<string>? httpMethods = null,
RequestDelegateFactoryOptions
? options = null) =>
Microsoft.AspNetCore.OpenApi (3)
GeneratedRouteBuilderExtensions.g.cs (3)
52
using MetadataPopulator = System.Func<System.Reflection.MethodInfo, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
?, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult>;
53
using RequestDelegateFactoryFunc = System.Func<System.Delegate, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?, Microsoft.AspNetCore.Http.RequestDelegateResult>;
277
public LogOrThrowExceptionHelper(IServiceProvider? serviceProvider,
RequestDelegateFactoryOptions
? options)
Microsoft.AspNetCore.Routing (13)
Builder\EndpointRouteBuilderExtensions.cs (1)
203
static RequestDelegateResult CreateHandlerRequestDelegate(Delegate handler,
RequestDelegateFactoryOptions
options, RequestDelegateMetadataResult? metadataResult)
Builder\RouteHandlerServices.cs (4)
39
Func<MethodInfo,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult> populateMetadata,
40
Func<Delegate,
RequestDelegateFactoryOptions
, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate)
69
Func<MethodInfo,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult> populateMetadata,
70
Func<Delegate,
RequestDelegateFactoryOptions
, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate,
RequestDelegateFilterPipelineBuilder.cs (1)
17
public static RequestDelegate Create(RequestDelegate requestDelegate,
RequestDelegateFactoryOptions
options)
RouteEndpointDataSource.cs (7)
37
Func<Delegate,
RequestDelegateFactoryOptions
, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc,
64
Func<MethodInfo,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult>? inferMetadataFunc,
65
Func<Delegate,
RequestDelegateFactoryOptions
, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc,
210
RequestDelegateFactoryOptions
? rdfOptions = null;
289
private
RequestDelegateFactoryOptions
CreateRdfOptions(RouteEntry entry, RoutePattern pattern, RouteEndpointBuilder builder)
347
public required Func<MethodInfo,
RequestDelegateFactoryOptions
?, RequestDelegateMetadataResult>? InferMetadataFunc { get; init; }
348
public required Func<Delegate,
RequestDelegateFactoryOptions
, RequestDelegateMetadataResult?, RequestDelegateResult> CreateHandlerRequestDelegateFunc { get; init; }
Sample (3)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (3)
52
using MetadataPopulator = System.Func<System.Reflection.MethodInfo, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
?, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult>;
53
using RequestDelegateFactoryFunc = System.Func<System.Delegate, Microsoft.AspNetCore.Http.
RequestDelegateFactoryOptions
, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?, Microsoft.AspNetCore.Http.RequestDelegateResult>;
6059
public LogOrThrowExceptionHelper(IServiceProvider? serviceProvider,
RequestDelegateFactoryOptions
? options)