INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>) 方法

定义

评估策略是否与 中 endpoints提供的任何终结点匹配。

public:
 bool AppliesToEndpoints(System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints);
public bool AppliesToEndpoints (System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> endpoints);
abstract member AppliesToEndpoints : System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> -> bool
Public Function AppliesToEndpoints (endpoints As IReadOnlyList(Of Endpoint)) As Boolean

参数

endpoints
IReadOnlyList<Endpoint>

Endpoint 的列表。

返回

true 如果策略适用于提供 endpoints的任何 。

适用于