From 94fab797716895235e2c9dd3c47355d29bfc38b7 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Sun, 14 Apr 2019 13:43:54 -0700 Subject: [PATCH] Add some cool docs about IDynamicEndpointMetadata. This will make James happy, which makes it more likely he will look at the rest of the PR. --- src/Http/Routing/src/Matching/MatcherPolicy.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Http/Routing/src/Matching/MatcherPolicy.cs b/src/Http/Routing/src/Matching/MatcherPolicy.cs index f3fdc05fb1..c15085aaf0 100644 --- a/src/Http/Routing/src/Matching/MatcherPolicy.cs +++ b/src/Http/Routing/src/Matching/MatcherPolicy.cs @@ -34,6 +34,18 @@ namespace Microsoft.AspNetCore.Routing /// /// The set of endpoints. /// true if a dynamic endpoint is found; otherwise returns false. + /// + /// + /// The presence of signifies that an endpoint that may be replaced + /// during processing by an . + /// + /// + /// An implementation of should also implement + /// and use its implementation when a node contains a dynamic endpoint. + /// implementations rely on caching of data based on a static set of endpoints. This + /// is not possible when endpoints are replaced dynamically. + /// + /// protected static bool ContainsDynamicEndpoints(IReadOnlyList endpoints) { if (endpoints == null)