共用方式為


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 要求的主機標頭實作篩選和選取。

適用於