HostMatcherPolicy Class

Definition

A MatcherPolicy that implements filtering and selection by the host header of a request.

public ref class HostMatcherPolicy sealed : Microsoft::AspNetCore::Routing::MatcherPolicy, Microsoft::AspNetCore::Routing::Matching::IEndpointComparerPolicy, Microsoft::AspNetCore::Routing::Matching::IEndpointSelectorPolicy, Microsoft::AspNetCore::Routing::Matching::INodeBuilderPolicy
public sealed class HostMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy
type HostMatcherPolicy = class
    inherit MatcherPolicy
    interface IEndpointComparerPolicy
    interface IEndpointSelectorPolicy
    interface INodeBuilderPolicy
type HostMatcherPolicy = class
    inherit MatcherPolicy
    interface IEndpointComparerPolicy
    interface INodeBuilderPolicy
    interface IEndpointSelectorPolicy
Public NotInheritable Class HostMatcherPolicy
Inherits MatcherPolicy
Implements IEndpointComparerPolicy, IEndpointSelectorPolicy, INodeBuilderPolicy
Inheritance
HostMatcherPolicy
Implements

Constructors

HostMatcherPolicy()

Properties

Comparer

Gets an IComparer<T> that will be used to sort the endpoints.

Order

Gets a value that determines the order the MatcherPolicy should be applied. Policies are applied in ascending numeric value of the Order property.

Methods

ApplyAsync(HttpContext, CandidateSet)

Applies the policy to the CandidateSet.

BuildJumpTable(Int32, IReadOnlyList<PolicyJumpTableEdge>)

Constructs a jump table given the a set of edges.

GetEdges(IReadOnlyList<Endpoint>)

Generates a graph that representations the relationship between endpoints and hosts.

Explicit Interface Implementations

IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>)
INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>)

Applies to