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