IEndpointSelectorPolicy Interface

Definition

A MatcherPolicy interface that can implemented to filter endpoints in a CandidateSet. Implementations of IEndpointSelectorPolicy must inherit from MatcherPolicy and should be registered in the dependency injection container as singleton services of type MatcherPolicy.

C#
public interface IEndpointSelectorPolicy
Derived

Methods

AppliesToEndpoints(IReadOnlyList<Endpoint>)

Returns a value that indicates whether the IEndpointSelectorPolicy applies to any endpoint in endpoints.

ApplyAsync(HttpContext, CandidateSet)

Applies the policy to the CandidateSet.

ApplyAsync(HttpContext, EndpointSelectorContext, CandidateSet)

Applies the policy to the CandidateSet.

Applies to

Proizvod Verzije
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0