IEndpointComparerPolicy 介面

定義

MatcherPolicy可實作以排序端點的介面。 的 IEndpointComparerPolicy 實作必須繼承自 MatcherPolicy ,而且應該在相依性插入容器中註冊為 類型的 MatcherPolicy 單一服務。

public interface class IEndpointComparerPolicy
public interface IEndpointComparerPolicy
type IEndpointComparerPolicy = interface
Public Interface IEndpointComparerPolicy
衍生

備註

中的 CandidateSet 候選項目會根據其優先順序排序。 定義 會將 IEndpointComparerPolicy 額外的準則加入排序作業中,用來排序候選項目。

例如,實作 的實作可確保符合特定 HTTP 方法的 HttpMethodMatcherPolicyIEndpointComparerPolicy 端點會以高於端點的優先順序來排序,而不需要特定 HTTP 方法。

屬性

Comparer

IComparer<T>取得將用來排序端點的 。

適用於