Share via


MatcherPolicy.ContainsDynamicEndpoints(IReadOnlyList<Endpoint>) Method

Definition

Returns a value that indicates whether the provided endpoints contains one or more dynamic endpoints.

protected:
 static bool ContainsDynamicEndpoints(System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints);
protected static bool ContainsDynamicEndpoints (System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> endpoints);
static member ContainsDynamicEndpoints : System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> -> bool
Protected Shared Function ContainsDynamicEndpoints (endpoints As IReadOnlyList(Of Endpoint)) As Boolean

Parameters

endpoints
IReadOnlyList<Endpoint>

The set of endpoints.

Returns

true if a dynamic endpoint is found; otherwise returns false.

Remarks

The presence of IDynamicEndpointMetadata signifies that an endpoint that may be replaced during processing by an IEndpointSelectorPolicy.

An implementation of INodeBuilderPolicy should also implement IEndpointSelectorPolicy and use its IEndpointSelectorPolicy implementation when a node contains a dynamic endpoint. INodeBuilderPolicy implementations rely on caching of data based on a static set of endpoints. This is not possible when endpoints are replaced dynamically.

Applies to