1 instantiation of MatcherState
Microsoft.AspNetCore.Routing (1)
DefaultLinkParser.cs (1)
112return new MatcherState(matcher, constraints);
10 references to MatcherState
Microsoft.AspNetCore.Routing (6)
DefaultLinkParser.cs (6)
20private readonly DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, MatcherState>> _matcherCache; 23private readonly Func<RouteEndpoint, MatcherState> _createMatcher; 37_matcherCache = new DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, MatcherState>>(dataSource, (_) => 41return new ConcurrentDictionary<RouteEndpoint, MatcherState>(); 87private MatcherState CreateRoutePatternMatcher(RouteEndpoint endpoint) 116internal MatcherState GetMatcherState(RouteEndpoint endpoint) => _matcherCache.EnsureInitialized().GetOrAdd(endpoint, _createMatcher);
Microsoft.AspNetCore.Routing.Tests (4)
DefaultLinkParserTest.cs (4)
127var expected = parser.GetMatcherState(endpoint1); 130var actual = parser.GetMatcherState(endpoint1); 145var original = parser.GetMatcherState(endpoint1); 151var actual = parser.GetMatcherState(endpoint1);