3 implementations of IEndpointFilter
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
291private sealed class HttpContextArgFilter : IEndpointFilter
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1071class ServiceAccessingEndpointFilter : IEndpointFilter 1090class IncrementArgFilter : IEndpointFilter
13 references to IEndpointFilter
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
45Assert.True(content.TryGetValue(nameof(IEndpointFilter), out var endpointFilterCalled));
Microsoft.AspNetCore.Routing (11)
Builder\EndpointFilterExtensions.cs (11)
12/// Extension methods for adding <see cref="IEndpointFilter"/> to a route handler. 20/// <param name="filter">The <see cref="IEndpointFilter"/> to register.</param> 22public static TBuilder AddEndpointFilter<TBuilder>(this TBuilder builder, IEndpointFilter filter) where TBuilder : IEndpointConventionBuilder => 29/// <typeparam name="TFilterType">The type of the <see cref="IEndpointFilter"/> to register.</typeparam> 34where TFilterType : IEndpointFilter 53var filter = (IEndpointFilter)filterFactory.Invoke(context.HttpContext.RequestServices, invokeArguments); 63/// <typeparam name="TFilterType">The type of the <see cref="IEndpointFilter"/> to register.</typeparam> 67where TFilterType : IEndpointFilter 76/// <typeparam name="TFilterType">The type of the <see cref="IEndpointFilter"/> to register.</typeparam> 80where TFilterType : IEndpointFilter
Mvc.RoutingWebSite (1)
StartupForEndpointFilters.cs (1)
32ic.HttpContext.Items[nameof(IEndpointFilter)] = true;