1 instantiation of MatcherState
Microsoft.AspNetCore.Routing (1)
DefaultLinkParser.cs (1)
112return new MatcherState(matcher, constraints);
6 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);