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