40 references to TryMatch
Microsoft.AspNetCore.Routing (2)
RouteBase.cs (1)
115if (!_matcher.TryMatch(requestPath, context.RouteData.Values))
Tree\TreeRouter.cs (1)
196if (!matcher.TryMatch(context.HttpContext.Request.Path, context.RouteData.Values))
Microsoft.AspNetCore.Routing.Tests (38)
Template\TemplateMatcherTests.cs (38)
19var match = matcher.TryMatch("/Bank/DoAction/123", values); 37var match = matcher.TryMatch("/Bank/DoAction", values); 52var match = matcher.TryMatch("/Bank/DoAction", values); 70var match = matcher.TryMatch("/Bank", values); 85var match = matcher.TryMatch("/moo/111/bar/222", values); 102var match = matcher.TryMatch("/moo/111/bar/", values); 125var match = matcher.TryMatch(path, values); 158var match = matcher.TryMatch(path, values); 193var match = matcher.TryMatch(path, values); 231var match = matcher.TryMatch(path, values); 246var match = matcher.TryMatch("/moo/bar", values); 262var match = matcher.TryMatch("/moo/bar", values); 277var match = matcher.TryMatch("/moo/bar/", values); 293var match = matcher.TryMatch("/moo/bar", values); 309var match = matcher.TryMatch("/moo/bar", values); 326var match = matcher.TryMatch("/moo/bar/boo", values); 341var match = matcher.TryMatch("/moo/bar", values); 356var match = matcher.TryMatch("/default.aspx", values); 378var match = matcher.TryMatch(path, values); 393var match = matcher.TryMatch("/v1", values); 414var match = matcher.TryMatch("/date/2007/08", values); 702var match = matcher.TryMatch("/v1/v2/v3", values); 720var match = matcher.TryMatch("/v1/", values); 738var match = matcher.TryMatch("/v1", values); 756var match = matcher.TryMatch("/v1", values); 774var match = matcher.TryMatch("/v1", values); 792var match = matcher.TryMatch("/v1/hello/whatever", values); 905var match = route.TryMatch(url, values); 924var match = route.TryMatch(url, values); 943var match = route.TryMatch(url, values); 961var match = route.TryMatch(url, values); 978var match = route.TryMatch(url, values); 1003var match = route.TryMatch(url, values); 1026var match = route.TryMatch(url, values); 1049var match = route.TryMatch(url, values); 1066var match = route.TryMatch(url, values); 1083var match = route.TryMatch(url, values); 1110var match = matcher.TryMatch(new PathString(path), values);