MatcherPolicy.ContainsDynamicEndpoints(IReadOnlyList<Endpoint>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.