12 types derived from EndpointFilterInvocationContext
Microsoft.AspNetCore.Http.Abstractions (11)
DefaultEndpointFilterInvocationContext.cs (1)
10
public sealed class DefaultEndpointFilterInvocationContext :
EndpointFilterInvocationContext
EndpointFilterInvocationContextOfT.Generated.cs (10)
12
internal sealed class EndpointFilterInvocationContext<T0> :
EndpointFilterInvocationContext
, IList<object?>
134
internal sealed class EndpointFilterInvocationContext<T0, T1> :
EndpointFilterInvocationContext
, IList<object?>
263
internal sealed class EndpointFilterInvocationContext<T0, T1, T2> :
EndpointFilterInvocationContext
, IList<object?>
399
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3> :
EndpointFilterInvocationContext
, IList<object?>
542
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4> :
EndpointFilterInvocationContext
, IList<object?>
692
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5> :
EndpointFilterInvocationContext
, IList<object?>
849
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6> :
EndpointFilterInvocationContext
, IList<object?>
1013
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6, T7> :
EndpointFilterInvocationContext
, IList<object?>
1184
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6, T7, T8> :
EndpointFilterInvocationContext
, IList<object?>
1362
internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> :
EndpointFilterInvocationContext
, IList<object?>
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ControllerEndpointFilterInvocationContext.cs (1)
12
internal class ControllerEndpointFilterInvocationContext :
EndpointFilterInvocationContext
100 references to EndpointFilterInvocationContext
Microsoft.AspNetCore.Http.Abstractions (23)
EndpointFilterDelegate.cs (2)
9
/// <param name="context">The <see cref="
EndpointFilterInvocationContext
"/> associated with the current request.</param>
13
public delegate ValueTask<object?> EndpointFilterDelegate(
EndpointFilterInvocationContext
context);
EndpointFilterInvocationContext.cs (18)
34
/// Creates the default implementation of a <see cref="
EndpointFilterInvocationContext
"/>.
36
public static
EndpointFilterInvocationContext
Create(HttpContext httpContext) =>
40
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
43
public static
EndpointFilterInvocationContext
Create<T>(HttpContext httpContext, T arg) =>
47
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
50
public static
EndpointFilterInvocationContext
Create<T1, T2>(HttpContext httpContext, T1 arg1, T2 arg2) =>
54
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
57
public static
EndpointFilterInvocationContext
Create<T1, T2, T3>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3) =>
61
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
64
public static
EndpointFilterInvocationContext
Create<T1, T2, T3, T4>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4) =>
68
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
71
public static
EndpointFilterInvocationContext
Create<T1, T2, T3, T4, T5>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) =>
75
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
78
public static
EndpointFilterInvocationContext
Create<T1, T2, T3, T4, T5, T6>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) =>
82
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
85
public static
EndpointFilterInvocationContext
Create<T1, T2, T3, T4, T5, T6, T7>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) =>
89
/// Creates a strongly-typed implementation of a <see cref="
EndpointFilterInvocationContext
"/>
92
public static
EndpointFilterInvocationContext
Create<T1, T2, T3, T4, T5, T6, T7, T8>(HttpContext httpContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) =>
IEndpointFilter.cs (3)
12
/// Implements the core logic associated with the filter given a <see cref="
EndpointFilterInvocationContext
"/>
15
/// <param name="context">The <see cref="
EndpointFilterInvocationContext
"/> associated with the current request/response.</param>
19
ValueTask<object?> InvokeAsync(
EndpointFilterInvocationContext
context, EndpointFilterDelegate next);
Microsoft.AspNetCore.Http.Extensions (9)
RequestDelegateFactory.cs (9)
113
private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(
EndpointFilterInvocationContext
).GetMethod(nameof(
EndpointFilterInvocationContext
.GetArgument))!;
115
private static readonly ParameterExpression FilterContextExpr = Expression.Parameter(typeof(
EndpointFilterInvocationContext
), "context");
116
private static readonly MemberExpression FilterContextHttpContextExpr = Expression.Property(FilterContextExpr, typeof(
EndpointFilterInvocationContext
).GetProperty(nameof(
EndpointFilterInvocationContext
.HttpContext))!);
117
private static readonly MemberExpression FilterContextArgumentsExpr = Expression.Property(FilterContextExpr, typeof(
EndpointFilterInvocationContext
).GetProperty(nameof(
EndpointFilterInvocationContext
.Arguments))!);
120
private static readonly ParameterExpression InvokedFilterContextExpr = Expression.Parameter(typeof(
EndpointFilterInvocationContext
), "filterContext");
358
Expression<Func<
EndpointFilterInvocationContext
, ValueTask<object?>>> invokePipeline = (context) => filterPipeline(context);
Microsoft.AspNetCore.Identity (10)
GeneratedRouteBuilderExtensions.g.cs (10)
159
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.RegisterRequest, global::Microsoft.AspNetCore.Http.HttpContext, global::System.IServiceProvider>(httpContext, registration_local!, context_local, sp_local));
345
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.LoginRequest, global::System.Boolean?, global::System.Boolean?, global::System.IServiceProvider>(httpContext, login_local!, useCookies_local, useSessionCookies_local, sp_local));
461
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.RefreshRequest, global::System.IServiceProvider>(httpContext, refreshRequest_local!, sp_local));
607
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.String, global::System.String, global::System.String?, global::System.IServiceProvider>(httpContext, userId_local, code_local, changedEmail_local, sp_local));
726
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest, global::Microsoft.AspNetCore.Http.HttpContext, global::System.IServiceProvider>(httpContext, resendRequest_local!, context_local, sp_local));
842
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest, global::System.IServiceProvider>(httpContext, resetRequest_local!, sp_local));
958
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest, global::System.IServiceProvider>(httpContext, resetRequest_local!, sp_local));
1077
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Security.Claims.ClaimsPrincipal, global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest, global::System.IServiceProvider>(httpContext, claimsPrincipal_local, tfaRequest_local!, sp_local));
1179
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Security.Claims.ClaimsPrincipal, global::System.IServiceProvider>(httpContext, claimsPrincipal_local, sp_local));
1301
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Security.Claims.ClaimsPrincipal, global::Microsoft.AspNetCore.Identity.Data.InfoRequest, global::Microsoft.AspNetCore.Http.HttpContext, global::System.IServiceProvider>(httpContext, claimsPrincipal_local, infoRequest_local!, context_local, sp_local));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
84
Assert.True(content.TryGetValue(nameof(
EndpointFilterInvocationContext
.Arguments), out var argument));
Microsoft.AspNetCore.OpenApi (1)
GeneratedRouteBuilderExtensions.g.cs (1)
139
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Http.HttpContext, global::System.String?>(httpContext, context_local, documentName_local));
Microsoft.AspNetCore.Routing (2)
Builder\EndpointFilterExtensions.cs (1)
92
public static TBuilder AddEndpointFilter<TBuilder>(this TBuilder builder, Func<
EndpointFilterInvocationContext
, EndpointFilterDelegate, ValueTask<object?>> routeHandlerFilter)
RequestDelegateFilterPipelineBuilder.cs (1)
32
EndpointFilterDelegate filteredInvocation = async (
EndpointFilterInvocationContext
context) =>
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
300
public async ValueTask<object?> InvokeAsync(
EndpointFilterInvocationContext
context, EndpointFilterDelegate next)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1082
public async ValueTask<object?> InvokeAsync(
EndpointFilterInvocationContext
context, EndpointFilterDelegate next)
1092
public async ValueTask<object?> InvokeAsync(
EndpointFilterInvocationContext
context, EndpointFilterDelegate next)
Sample (51)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (51)
151
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.String>(httpContext, documentName_local!));
272
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Http.IFormFile>(httpContext, resume_local!));
393
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Http.IFormFileCollection>(httpContext, files_local!));
533
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.Http.IFormFile, global::Microsoft.AspNetCore.Http.IFormFileCollection>(httpContext, resume_local!, files_local!));
619
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
704
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
789
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
876
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
963
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
1050
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
1209
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Int32, global::System.Int32>(httpContext, id_local!, size_local!));
1333
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Product>(httpContext, product_local!));
1457
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Account>(httpContext, account_local!));
1582
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Int32[]>(httpContext, values_local!));
1704
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Collections.Generic.List<global::System.Int32>>(httpContext, values_local!));
1826
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Collections.Generic.IEnumerable<global::System.Int32>>(httpContext, values_local!));
1911
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
1996
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
2115
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Shape>(httpContext, shape_local!));
2234
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::WeatherForecastBase>(httpContext, forecast_local!));
2353
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Person>(httpContext, person_local!));
2472
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.Category>(httpContext, category_local!));
2591
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.ContainerType>(httpContext, container_local!));
2710
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.Root>(httpContext, root_local!));
2829
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.LocationContainer>(httpContext, location_local!));
2952
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.ParentObject>(httpContext, parent_local!));
3075
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.ChildObject>(httpContext, child_local!));
3201
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.JsonPatch.SystemTextJson.JsonPatchDocument>(httpContext, patchDoc_local!));
3327
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Microsoft.AspNetCore.JsonPatch.SystemTextJson.JsonPatchDocument<global::SchemasEndpointsExtensions.ParentObject>>(httpContext, patchDoc_local!));
3413
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
3536
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.Config>(httpContext, config_local!));
3659
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.ProjectResponse>(httpContext, project_local!));
3782
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.Subscription>(httpContext, subscription_local!));
3869
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
3954
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
4077
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.NullableRequestModel?>(httpContext, request_local));
4200
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.ComplexHierarchyModel>(httpContext, model_local!));
4323
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::SchemasEndpointsExtensions.NullableArrayModel>(httpContext, model_local!));
4410
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
4497
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
4622
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Guid[]>(httpContext, guids_local!));
4745
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::Todo>(httpContext, todo_local!));
4870
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::System.Int32>(httpContext, id_local!));
4955
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
5041
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create(httpContext));
5165
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.TypeWithExamples>(httpContext, typeWithExamples_local!));
5284
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.TodoFomInterface>(httpContext, todo_local!));
5403
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.Project>(httpContext, project_local!));
5522
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.ProjectBoard.BoardItem>(httpContext, boardItem_local!));
5641
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.ProjectRecord>(httpContext, projectRecord_local!));
5760
var result = await filteredInvocation(
EndpointFilterInvocationContext
.Create<global::XmlEndpointExtensions.TodoWithDescription>(httpContext, todo_local!));