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