HostMatcherPolicy 类

定义

一个 MatcherPolicy ,它实现按请求的主机标头进行筛选和选择。

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
继承
HostMatcherPolicy
实现

构造函数

HostMatcherPolicy()

一个 MatcherPolicy ,它实现按请求的主机标头进行筛选和选择。

属性

Comparer

IComparer<T>获取将用于对终结点进行排序的 。

Order

获取一个值,该值确定应应用 的顺序 MatcherPolicy 。 策略以属性的 Order 升序数值应用。

方法

ApplyAsync(HttpContext, CandidateSet)

将策略应用于 CandidateSet

BuildJumpTable(Int32, IReadOnlyList<PolicyJumpTableEdge>)

在给定一组 edges的情况下构造跳转表。

GetEdges(IReadOnlyList<Endpoint>)

生成表示终结点和主机之间的关系的图。

显式接口实现

IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>)

一个 MatcherPolicy ,它实现按请求的主机标头进行筛选和选择。

INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>)

一个 MatcherPolicy ,它实现按请求的主机标头进行筛选和选择。

适用于