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
39 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)
112private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(EndpointFilterInvocationContext).GetMethod(nameof(EndpointFilterInvocationContext.GetArgument))!; 114private static readonly ParameterExpression FilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "context"); 115private static readonly MemberExpression FilterContextHttpContextExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.HttpContext))!); 116private static readonly MemberExpression FilterContextArgumentsExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.Arguments))!); 119private static readonly ParameterExpression InvokedFilterContextExpr = Expression.Parameter(typeof(EndpointFilterInvocationContext), "filterContext"); 356Expression<Func<EndpointFilterInvocationContext, ValueTask<object?>>> invokePipeline = (context) => filterPipeline(context);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
83Assert.True(content.TryGetValue(nameof(EndpointFilterInvocationContext.Arguments), out var argument));
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) =>
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
300public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1082public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) 1092public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)
Mvc.RoutingWebSite (1)
StartupForEndpointFilters.cs (1)
48ic.HttpContext.Items[nameof(EndpointFilterInvocationContext.Arguments)] = firstArg;