3 implementations of IEndpointFilter
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
291
private sealed class HttpContextArgFilter :
IEndpointFilter
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1071
class ServiceAccessingEndpointFilter :
IEndpointFilter
1090
class IncrementArgFilter :
IEndpointFilter
13 references to IEndpointFilter
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
45
Assert.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>
22
public 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>
34
where TFilterType :
IEndpointFilter
53
var
filter = (
IEndpointFilter
)filterFactory.Invoke(context.HttpContext.RequestServices, invokeArguments);
63
/// <typeparam name="TFilterType">The type of the <see cref="
IEndpointFilter
"/> to register.</typeparam>
67
where TFilterType :
IEndpointFilter
76
/// <typeparam name="TFilterType">The type of the <see cref="
IEndpointFilter
"/> to register.</typeparam>
80
where TFilterType :
IEndpointFilter
Mvc.RoutingWebSite (1)
StartupForEndpointFilters.cs (1)
32
ic.HttpContext.Items[nameof(
IEndpointFilter
)] = true;