EndpointFilterExtensions Class

Definition

Extension methods for adding IEndpointFilter to a route handler.

public static class EndpointFilterExtensions
type EndpointFilterExtensions = class
Public Module EndpointFilterExtensions
Inheritance
EndpointFilterExtensions

Methods

AddEndpointFilter<TBuilder,TFilterType>(TBuilder)

Registers a filter of type TFilterType onto the route handler.

AddEndpointFilter<TBuilder>(TBuilder, Func<EndpointFilterInvocationContext,EndpointFilterDelegate,ValueTask<Object>>)

Registers a filter given a delegate onto the route handler.

AddEndpointFilter<TBuilder>(TBuilder, IEndpointFilter)

Registers a filter onto the route handler.

AddEndpointFilter<TFilterType>(RouteGroupBuilder)

Registers a filter of type TFilterType onto the route handler.

AddEndpointFilter<TFilterType>(RouteHandlerBuilder)

Registers a filter of type TFilterType onto the route handler.

AddEndpointFilterFactory<TBuilder>(TBuilder, Func<EndpointFilterFactoryContext,EndpointFilterDelegate,EndpointFilterDelegate>)

Register a filter given a delegate representing the filter factory.

Applies to