2 instantiations of RoutePattern
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
533return new RoutePattern(
Microsoft.AspNetCore.Components.Tests (1)
Routing\TemplateParserTests.cs (1)
272public RoutePattern Build() => new RoutePattern(
35 references to RoutePattern
Microsoft.AspNetCore.Components (21)
Routing\RouteTableFactory.cs (7)
151var parsedTemplate = RoutePatternParser.Parse(templates[i]); 167public (RoutePattern, HashSet<string>)[] ParsedTemplates { get; set; } = new (RoutePattern, HashSet<string>)[templates.Length]; 175RoutePattern? parsedTemplate = null; 224private static HashSet<string> GetParameterNames(RoutePattern routeTemplate) 286var xTemplate = x.RoutePattern; 287var yTemplate = y.RoutePattern;
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
28/// <see cref="RequiredValueAny"/> is only use in routing is in <see cref="RoutePattern.RequiredValues"/>.
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (4)
173/// Creates a new instance of <see cref="RoutePattern"/> from a collection of segments. 177/// <returns>The <see cref="RoutePattern"/>.</returns> 178public static RoutePattern Pattern(string? rawText, IEnumerable<RoutePatternPathSegment> segments) 440private static RoutePattern PatternCore(
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (2)
24RoutePattern pattern, 61public RoutePattern RoutePattern { get; }
src\Http\Routing\src\Patterns\RoutePatternParameterPolicyReference.cs (1)
9/// The parsed representation of a policy in a <see cref="RoutePattern"/> parameter. Instances
src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
25public static RoutePattern Parse(string pattern)
src\Http\Routing\src\Template\RoutePrecedence.cs (3)
58internal static decimal ComputeInbound(RoutePattern routePattern) 112internal static decimal ComputeOutbound(RoutePattern routePattern) 249internal static int ComputeInboundPrecedenceDigit(RoutePattern routePattern, RoutePatternPathSegment pathSegment)
src\Http\Routing\src\Tree\InboundRouteEntry.cs (1)
74public RoutePattern RoutePattern { get; set; }
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
87RoutePattern routeTemplate,
Microsoft.AspNetCore.Components.Tests (14)
Routing\TemplateParserTests.cs (14)
17var actual = RoutePatternParser.Parse("awesome"); 32var actual = RoutePatternParser.Parse(template); 47var actual = RoutePatternParser.Parse(template); 62var actual = RoutePatternParser.Parse(template); 77var actual = RoutePatternParser.Parse(template); 92var actual = RoutePatternParser.Parse(template); 105var actual = RoutePatternParser.Parse("awesome/wow/{*p}"); 118var actual = RoutePatternParser.Parse("awesome/{p1}/{*p2}"); 272public RoutePattern Build() => new RoutePattern( 280public static implicit operator RoutePattern(ExpectedTemplateBuilder builder) => builder.Build(); 283private class RouteTemplateTestComparer : IEqualityComparer<RoutePattern> 287public bool Equals(RoutePattern x, RoutePattern y) 328public int GetHashCode(RoutePattern obj) => 0;