32 references to RequestDelegateFactory
Microsoft.AspNetCore.Http.Extensions (29)
RequestDelegateFactory.cs (23)
41
private static readonly MethodInfo ExecuteTaskWithEmptyResultMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskWithEmptyResult), BindingFlags.NonPublic | BindingFlags.Static)!;
42
private static readonly MethodInfo ExecuteValueTaskWithEmptyResultMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskWithEmptyResult), BindingFlags.NonPublic | BindingFlags.Static)!;
43
private static readonly MethodInfo ExecuteTaskOfTMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskOfT), BindingFlags.NonPublic | BindingFlags.Static)!;
44
private static readonly MethodInfo ExecuteTaskOfTFastMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskOfTFast), BindingFlags.NonPublic | BindingFlags.Static)!;
45
private static readonly MethodInfo ExecuteTaskOfObjectMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskOfObject), BindingFlags.NonPublic | BindingFlags.Static)!;
46
private static readonly MethodInfo ExecuteValueTaskOfObjectMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskOfObject), BindingFlags.NonPublic | BindingFlags.Static)!;
47
private static readonly MethodInfo ExecuteTaskOfStringMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskOfString), BindingFlags.NonPublic | BindingFlags.Static)!;
48
private static readonly MethodInfo ExecuteValueTaskOfTMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskOfT), BindingFlags.NonPublic | BindingFlags.Static)!;
49
private static readonly MethodInfo ExecuteValueTaskOfTFastMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskOfTFast), BindingFlags.NonPublic | BindingFlags.Static)!;
50
private static readonly MethodInfo ExecuteValueTaskMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTask), BindingFlags.NonPublic | BindingFlags.Static)!;
51
private static readonly MethodInfo ExecuteValueTaskOfStringMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskOfString), BindingFlags.NonPublic | BindingFlags.Static)!;
52
private static readonly MethodInfo ExecuteTaskResultOfTMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteTaskResult), BindingFlags.NonPublic | BindingFlags.Static)!;
53
private static readonly MethodInfo ExecuteValueResultTaskOfTMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteValueTaskResult), BindingFlags.NonPublic | BindingFlags.Static)!;
54
private static readonly MethodInfo ExecuteAwaitedReturnMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteAwaitedReturn), BindingFlags.NonPublic | BindingFlags.Static)!;
60
private static readonly MethodInfo ResultWriteResponseAsyncMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteResultWriteResponse), BindingFlags.NonPublic | BindingFlags.Static)!;
61
private static readonly MethodInfo StringResultWriteResponseAsyncMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ExecuteWriteStringResponseAsync), BindingFlags.NonPublic | BindingFlags.Static)!;
63
private static readonly MethodInfo WrapObjectAsValueTaskMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(WrapObjectAsValueTask), BindingFlags.NonPublic | BindingFlags.Static)!;
64
private static readonly MethodInfo TaskOfTToValueTaskOfObjectMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(TaskOfTToValueTaskOfObject), BindingFlags.NonPublic | BindingFlags.Static)!;
65
private static readonly MethodInfo ValueTaskOfTToValueTaskOfObjectMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ValueTaskOfTToValueTaskOfObject), BindingFlags.NonPublic | BindingFlags.Static)!;
74
private static readonly MethodInfo JsonResultWriteResponseOfTFastAsyncMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(WriteJsonResponseFast), BindingFlags.NonPublic | BindingFlags.Static)!;
75
private static readonly MethodInfo JsonResultWriteResponseOfTAsyncMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(WriteJsonResponse), BindingFlags.NonPublic | BindingFlags.Static)!;
123
private static readonly MethodInfo ProcessFormMethod = typeof(
RequestDelegateFactory
).GetMethod(nameof(ProcessForm), BindingFlags.Static | BindingFlags.NonPublic)!;
2839
return loggerFactory.CreateLogger(typeof(
RequestDelegateFactory
));
RequestDelegateFactoryOptions.cs (4)
11
/// Options for controlling the behavior of the <see cref="RequestDelegate" /> when created using <see cref="
RequestDelegateFactory
" />.
32
/// Prevent the <see cref="
RequestDelegateFactory
" /> from inferring a parameter should be bound from the request body without an attribute that implements <see cref="IFromBodyMetadata"/>.
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 (2)
7
/// The metadata inferred by <see cref="
RequestDelegateFactory
.InferMetadata(System.Reflection.MethodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions?)"/>.
9
/// If this is passed to <see cref="
RequestDelegateFactory
.Create(Delegate, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions?, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?)"/>,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1791
var requestDelegateResult =
RequestDelegateFactory
.Create(methodInfo, options: options);
Microsoft.AspNetCore.Routing (2)
Builder\EndpointRouteBuilderExtensions.cs (2)
439
.AddRouteHandler(pattern, handler, httpMethods, isFallback,
RequestDelegateFactory
.InferMetadata,
RequestDelegateFactory
.Create, handler.Method);