4 instantiations of TemplateMatcher
Microsoft.AspNetCore.Routing (2)
RouteBase.cs (1)
332_matcher = new TemplateMatcher(ParsedTemplate, Defaults);
Tree\UrlMatchingTree.cs (1)
76var matcher = new TemplateMatcher(entry.RouteTemplate, entry.Defaults);
Microsoft.AspNetCore.Routing.Tests (2)
Template\TemplateMatcherTests.cs (2)
1091return new TemplateMatcher( 1103var matcher = new TemplateMatcher(
44 references to TemplateMatcher
Microsoft.AspNetCore.Routing (5)
RouteBase.cs (1)
20private TemplateMatcher? _matcher;
Template\TemplateMatcher.cs (1)
22/// Creates a new <see cref="TemplateMatcher"/> instance given a <paramref name="template"/> and <paramref name="defaults"/>.
Tree\InboundMatch.cs (1)
32public TemplateMatcher TemplateMatcher { get; set; }
Tree\TreeRouter.cs (1)
193var matcher = item.TemplateMatcher;
Tree\UrlMatchingTree.cs (1)
76var matcher = new TemplateMatcher(entry.RouteTemplate, entry.Defaults);
Microsoft.AspNetCore.Routing.Tests (39)
Template\TemplateMatcherTests.cs (39)
14var matcher = CreateMatcher("{controller}/{action}/{id}"); 32var matcher = CreateMatcher("{controller}/{action}/{id}"); 47var matcher = CreateMatcher("{controller}/{action}/{id}", new { id = "default id" }); 65var matcher = CreateMatcher("{controller}/{action}/{id}", new { id = "default id" }); 80var matcher = CreateMatcher("moo/{p1}/bar/{p2}", new { p2 = "default p2" }); 97var matcher = CreateMatcher("moo/{p1}/bar/{p2}", new { p2 = "default p2" }); 120var matcher = CreateMatcher(template); 153var matcher = CreateMatcher(template); 188var matcher = CreateMatcher(template); 226var matcher = CreateMatcher(template); 241var matcher = CreateMatcher("moo/bar"); 257var matcher = CreateMatcher("moo/bars"); 272var matcher = CreateMatcher("moo/bar"); 288var matcher = CreateMatcher("moo/bar/"); 304var matcher = CreateMatcher("{p1}/{p2}/"); 321var matcher = CreateMatcher("{p1}/{p2}/baz"); 336var matcher = CreateMatcher("{p1}"); 351var matcher = CreateMatcher("DEFAULT.ASPX"); 373var matcher = CreateMatcher(template); 388var matcher = CreateMatcher("{p1}/{p2}", new { p2 = (string)null, foo = "bar" }); 407var matcher = CreateMatcher( 697var matcher = CreateMatcher("{p1}/{*p2}"); 715var matcher = CreateMatcher("{p1}/{*p2}"); 733var matcher = CreateMatcher("{p1}/{*p2}"); 751var matcher = CreateMatcher("{p1}/{*p2}"); 769var matcher = CreateMatcher("{p1}/{*p2}", new { p2 = "catchall" }); 787var matcher = CreateMatcher("{p1}/{*p2}", new { p2 = "catchall" }); 899var route = CreateMatcher("{controller}/{action?}"); 918var route = CreateMatcher("{controller}/{action?}"); 937var route = CreateMatcher("{controller?}"); 955var route = CreateMatcher(""); 972var route = CreateMatcher("{controller}/{action?}/{id?}"); 998var route = CreateMatcher("{controller?}/{action?}/{id?}"); 1021var route = CreateMatcher("{controller?}/{action?}/{id?}"); 1044var route = CreateMatcher("{controller}/{action}/{id}"); 1061var route = CreateMatcher("{controller}/{action}/{*id}"); 1078var route = CreateMatcher("{controller}/{action}/{*id}"); 1089private TemplateMatcher CreateMatcher(string template, object defaults = null) 1103var matcher = new TemplateMatcher(