12 types derived from EndpointFilterInvocationContext
Microsoft.AspNetCore.Http.Abstractions (11)
DefaultEndpointFilterInvocationContext.cs (1)
10public sealed class DefaultEndpointFilterInvocationContext : EndpointFilterInvocationContext
EndpointFilterInvocationContextOfT.Generated.cs (10)
12internal sealed class EndpointFilterInvocationContext<T0> : EndpointFilterInvocationContext, IList<object?> 134internal sealed class EndpointFilterInvocationContext<T0, T1> : EndpointFilterInvocationContext, IList<object?> 263internal sealed class EndpointFilterInvocationContext<T0, T1, T2> : EndpointFilterInvocationContext, IList<object?> 399internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3> : EndpointFilterInvocationContext, IList<object?> 542internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4> : EndpointFilterInvocationContext, IList<object?> 692internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5> : EndpointFilterInvocationContext, IList<object?> 849internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6> : EndpointFilterInvocationContext, IList<object?> 1013internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6, T7> : EndpointFilterInvocationContext, IList<object?> 1184internal sealed class EndpointFilterInvocationContext<T0, T1, T2, T3, T4, T5, T6, T7, T8> : EndpointFilterInvocationContext, IList<object?> 1362internal 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)
12internal class ControllerEndpointFilterInvocationContext : EndpointFilterInvocationContext
44 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> 13public delegate ValueTask<object?> EndpointFilterDelegate(EndpointFilterInvocationContext context);
EndpointFilterInvocationContext.cs (18)
34/// Creates the default implementation of a <see cref="EndpointFilterInvocationContext"/>. 36public static EndpointFilterInvocationContext Create(HttpContext httpContext) => 40/// Creates a strongly-typed implementation of a <see cref="EndpointFilterInvocationContext"/> 43public static EndpointFilterInvocationContext Create<T>(HttpContext httpContext, T arg) => 47/// Creates a strongly-typed implementation of a <see cref="EndpointFilterInvocationContext"/> 50public static EndpointFilterInvocationContext Create<T1, T2>(HttpContext httpContext, T1 arg1, T2 arg2) => 54/// Creates a strongly-typed implementation of a <see cref="EndpointFilterInvocationContext"/> 57public 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"/> 64public 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"/> 71public 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"/> 78public 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"/> 85public 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"/> 92public 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> 19ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next);
Microsoft.AspNetCore.Http.Extensions (9)
RequestDelegateFactory.cs (9)
113private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(EndpointFilterInvocationContext).GetMethod(nameof(EndpointFilterInvocationContext.GetArgument))!; 115private static readonly ParameterExpression FilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "context"); 116private static readonly MemberExpression FilterContextHttpContextExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.HttpContext))!); 117private static readonly MemberExpression FilterContextArgumentsExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.Arguments))!); 120private static readonly ParameterExpression InvokedFilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "filterContext"); 358Expression<Func<EndpointFilterInvocationContext, ValueTask<object?>>> invokePipeline = (context) => filterPipeline(context);
Microsoft.AspNetCore.Identity (10)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (10)
159var 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)); 345var 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)); 461var result = await filteredInvocation(EndpointFilterInvocationContext.Create<global::Microsoft.AspNetCore.Identity.Data.RefreshRequest, global::System.IServiceProvider>(httpContext, refreshRequest_local!, sp_local)); 607var 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)); 726var 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)); 842var result = await filteredInvocation(EndpointFilterInvocationContext.Create<global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest, global::System.IServiceProvider>(httpContext, resetRequest_local!, sp_local)); 958var result = await filteredInvocation(EndpointFilterInvocationContext.Create<global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest, global::System.IServiceProvider>(httpContext, resetRequest_local!, sp_local)); 1077var 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)); 1179var result = await filteredInvocation(EndpointFilterInvocationContext.Create<global::System.Security.Claims.ClaimsPrincipal, global::System.IServiceProvider>(httpContext, claimsPrincipal_local, sp_local)); 1301var 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.Routing (2)
Builder\EndpointFilterExtensions.cs (1)
92public static TBuilder AddEndpointFilter<TBuilder>(this TBuilder builder, Func<EndpointFilterInvocationContext, EndpointFilterDelegate, ValueTask<object?>> routeHandlerFilter)
RequestDelegateFilterPipelineBuilder.cs (1)
32EndpointFilterDelegate filteredInvocation = async (EndpointFilterInvocationContext context) =>