1 write to RawText
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePattern.cs (1)
54RawText = rawText;
200 references to RawText
IntegrationTestsWebsite (2)
Infrastructure\DynamicEndpointDataSource.cs (2)
43.SingleOrDefault(e => e.RoutePattern.RawText == routeEndpoint.RoutePattern.RawText);
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentEndpointFactory.cs (1)
74builder.DisplayName = $"{builder.RoutePattern.RawText} ({pageDefinition.DisplayName})";
Rendering\EndpointHtmlRenderer.cs (1)
125routingStateProvider.RouteData.Template = routeEndpoint.RoutePattern.RawText;
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (2)
232if (rb.RoutePattern.RawText == frameworkEndpoint) 242Assert.Equal(frameworkEndpoint, ((RouteEndpoint)webJSEndpoint).RoutePattern.RawText);
HotReloadServiceTests.cs (9)
52Assert.Equal("/server", endpoint.RoutePattern.RawText); 71(ep) => Assert.Equal("/app/test", ((RouteEndpoint)ep).RoutePattern.RawText), 72(ep) => Assert.Equal("/server", ((RouteEndpoint)ep).RoutePattern.RawText)); 87Assert.Equal("/server", endpoint.RoutePattern.RawText); 109Assert.Equal("/server", endpoint.RoutePattern.RawText); 119Assert.Equal("/server", updatedEndpoint.RoutePattern.RawText); 135Assert.Equal("/server", endpoint.RoutePattern.RawText); 137Assert.Equal("/server", compositeEndpoint.RoutePattern.RawText); 184Assert.Equal("/server", endpoint.RoutePattern.RawText);
RazorComponentEndpointFactoryTest.cs (1)
38Assert.Equal("/", routeEndpoint.RoutePattern.RawText);
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
351endpointModel.RoutePattern = routeEndpoint.RoutePattern.RawText;
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Logging\HttpLoggingRedactionInterceptor.cs (2)
91if (endpoint?.RoutePattern.RawText != null) 93var httpRoute = endpoint.RoutePattern.RawText;
Logging\HttpUtilityExtensions.cs (1)
43return routeEndpoint.RoutePattern.RawText ?? string.Empty;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (7)
JsonTranscodingServiceMethodProviderTests.cs (7)
31Assert.Equal("/v1/greeter/{name}", endpoint.RoutePattern.RawText); 45Assert.Equal("/v1/greeter/{name}", endpoint.RoutePattern.RawText); 63Assert.Equal("/v1/additional_bindings/{name}", getMethodModel.RoutePattern.RawText); 68Assert.Equal("/v1/additional_bindings/{name}", additionalMethodModel.RoutePattern.RawText); 83Assert.Equal("/v1/frames:startFrameImport", startFrameImport.RoutePattern.RawText); 87Assert.Equal("/v1/frames:getFrameImport", getFrameImport.RoutePattern.RawText); 159Assert.Equal("/v1/server_greeter/{name}", endpoint.RoutePattern.RawText);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\SharedTypes.cs (1)
952builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern?.RawText ?? string.Empty });
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
952builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern?.RawText ?? string.Empty });
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
188var finalPattern = ((RouteEndpointBuilder)endpointBuilder).RoutePattern.RawText;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
104RelativePath = routeEndpoint.RoutePattern.RawText?.TrimStart('/'),
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionEndpointFactory.cs (2)
143$"Failed to update the route pattern '{resolvedRoutePattern.RawText}' with required route values. " + 220DisplayName = "Route: " + route.Pattern.RawText,
Microsoft.AspNetCore.Mvc.Core.Test (51)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
433builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern.RawText });
Routing\ActionEndpointDataSourceBaseTest.cs (4)
37Assert.Equal("/Template!", endpoint.RoutePattern.RawText); 61(e) => Assert.Equal("/test", Assert.IsType<RouteEndpoint>(e).RoutePattern.RawText)); 99Assert.Equal("/test", routePattern.RawText); 121Assert.Equal("/test", routePattern.RawText);
Routing\ActionEndpointFactoryTest.cs (6)
149Assert.Equal("{controller}/{action}/{id?}", endpoint.RoutePattern.RawText); 184Assert.Equal("{controller}/{action=TESTACTION}/{id?}", endpoint.RoutePattern.RawText); 232Assert.Equal("{controller}/{action}/{page}", endpoint.RoutePattern.RawText); 250Assert.Equal("{controller}/{action}/{page}", endpoint.RoutePattern.RawText); 347Assert.Equal("{controller}/{action}/{id?}", matcherEndpoint.RoutePattern.RawText); 355Assert.Equal("named/{controller}/{action}/{id?}", matcherEndpoint.RoutePattern.RawText);
Routing\ControllerActionEndpointDataSourceTest.cs (39)
91endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 94Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 99Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 104endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 107Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 114Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 121Assert.Equal("/test", e.RoutePattern.RawText); 173endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 176Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 182Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 188endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 191Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 197Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 203Assert.Equal("/test", e.RoutePattern.RawText); 260endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 263Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 268Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 273endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 276Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 283Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 290Assert.Equal("/test", e.RoutePattern.RawText); 342endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 345Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 351Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 357endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 360Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 366Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 372Assert.Equal("/test", e.RoutePattern.RawText); 436endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 439Assert.Equal("/group1/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 446Assert.Equal("/group1/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 453endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 456Assert.Equal("/group1/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 464Assert.Equal("/group1/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 471Assert.Equal("/group1/test", e.RoutePattern.RawText); 526endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText), 529Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText); 534Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText); 539Assert.Equal("/test", e.RoutePattern.RawText);
Routing\EndpointRoutingUrlHelperTest.cs (1)
36Assert.Equal("/" + endpoint2.RoutePattern.RawText, url);
Microsoft.AspNetCore.Mvc.RazorPages.Test (13)
Infrastructure\PageActionEndpointDataSourceTest.cs (9)
84endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText), 87Assert.Equal("/test", e.RoutePattern.RawText); 154endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText), 157Assert.Equal("/group1/test", e.RoutePattern.RawText); 164Assert.Equal("/group1/test2", e.RoutePattern.RawText); 204endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText), 207Assert.Equal("/test", e.RoutePattern.RawText); 252endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText), 255Assert.Equal("/test", e.RoutePattern.RawText);
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (4)
37Assert.Equal("/Template!", endpoint.RoutePattern.RawText); 61(e) => Assert.Equal("/test", Assert.IsType<RouteEndpoint>(e).RoutePattern.RawText)); 99Assert.Equal("/test", routePattern.RawText); 121Assert.Equal("/test", routePattern.RawText);
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
47Assert.Equal(expectedPath, generatedEndpoint.RoutePattern.RawText);
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
228e => ((RouteEndpoint)e).RoutePattern.RawText,
Microsoft.AspNetCore.Routing (18)
DefaultLinkGenerator.cs (4)
355=> TemplateSucceeded(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, path.Value, query.Value); 367TemplateFailedRequiredValues(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(ambientValues), FormatRouteValues(values), FormatRouteValues(endpoint.RoutePattern.Defaults)); 384TemplateFailedConstraint(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, constraint, parameterName, FormatRouteValues(values)); 400TemplateFailedExpansion(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(values));
EndpointDataSource.cs (1)
102var template = routeEndpoint.RoutePattern.RawText;
Matching\DataSourceDependentMatcher.cs (1)
58seenEndpointNames.Add(endpointName, endpoint.DisplayName ?? endpoint.RoutePattern.RawText);
Matching\DfaMatcher.cs (1)
430return (endpoint as RouteEndpoint)?.RoutePattern?.RawText ?? "(none)";
Matching\EndpointComparer.cs (2)
62return string.Compare(routeEndpointX.RoutePattern.RawText, routeEndpointY.RoutePattern.RawText, StringComparison.OrdinalIgnoreCase);
Patterns\DefaultRoutePatternTransformer.cs (1)
189original.RawText,
Patterns\RoutePattern.cs (1)
163return RawText ?? string.Join(SeparatorString, PathSegments.Select(s => s.DebuggerToString()));
Patterns\RoutePatternFactory.cs (6)
75return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), requiredValues: null, original.PathSegments); 100return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues: null, original.PathSegments); 129return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), Wrap(requiredValues), original.PathSegments); 157return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues, original.PathSegments); 1089var rawText = $"{left.RawText?.TrimEnd('/')}/{right.RawText?.TrimStart('/')}";
Template\RouteTemplate.cs (1)
30TemplateText = other.RawText;
Microsoft.AspNetCore.Routing.Microbenchmarks (7)
EndpointRoutingBenchmarkBase.cs (1)
140endpoint.RoutePattern.RawText,
Matching\TrivialMatcher.cs (2)
28if (string.Equals(_endpoint.RoutePattern.RawText, path, StringComparison.OrdinalIgnoreCase)) 40if (string.Equals(_endpoint.RoutePattern.RawText, path, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (3)
35.GroupBy(e => (e.Order, e.RoutePattern.InboundPrecedence, e.RoutePattern.RawText)) 51var withoutDefaults = RoutePatternFactory.Parse(endpoint.RoutePattern.RawText); 64endpoint.RoutePattern.RawText,
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
42.GroupBy(e => (e.Order, e.RoutePattern.InboundPrecedence, e.RoutePattern.RawText))
Microsoft.AspNetCore.Routing.Tests (70)
Builder\GroupTest.cs (9)
43Assert.Equal("/{id}", routeEndpoint.RoutePattern.RawText); 75Assert.Equal("/{org}/{id}", routeEndpoint.RoutePattern.RawText); 109Assert.Equal("/{org}/{id}/", routeEndpoint.RoutePattern.RawText); 175Assert.Equal("/outer/inner/foo", outerPattern?.RawText); 176Assert.Equal("/outer/inner/foo", innerPattern?.RawText); 253Assert.Equal("/bar", routeEndpoint.RoutePattern.RawText); 349Assert.Equal("/group/foo", routeEndpoint.RoutePattern.RawText); 355Assert.Equal("/group/bar", routeEndpoint.RoutePattern.RawText); 383Assert.Equal("/group/foo", prefixedEndpoint.RoutePattern.RawText);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (5)
75Assert.Equal("/", endpointBuilder1.RoutePattern.RawText); 362Assert.Equal("/", endpointBuilder1.RoutePattern.RawText); 376Assert.Equal("/", endpointBuilder1.RoutePattern.RawText); 395Assert.Equal("/", endpointBuilder1.RoutePattern.RawText); 521Assert.Equal("/", endpointBuilder1.RoutePattern.RawText);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (22)
109Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 129Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 155Assert.Equal("/{id}", routeEndpointBuilder.RoutePattern.RawText); 193Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 277Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 297Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 317Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 341Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 361Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 381Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 405Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 425Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 445Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 534Assert.Equal($"/{{ID}}", routeEndpointBuilder.RoutePattern.RawText); 575Assert.Equal($"/{{ID}}", routeEndpointBuilder.RoutePattern.RawText); 675Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 713Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 733Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 748Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText); 764Assert.Equal("{*path:nonfile}", routeEndpointBuilder.RoutePattern.RawText); 893Assert.Equal(expectedPattern, routeEndpoint.RoutePattern.RawText); 948.ToDictionary(e => ((RouteEndpoint)e).RoutePattern.RawText!);
CompositeEndpointDataSourceTest.cs (7)
310Assert.Equal("/prefix/a", resolvedEndpoint.RoutePattern.RawText); 359Assert.Equal("/prefix/a", endpoint.RoutePattern.RawText); 366Assert.Equal("/prefix/b", endpoint.RoutePattern.RawText); 414Assert.Equal("/prefix/a", endpoint.RoutePattern.RawText); 421Assert.Equal("/prefix/b", endpoint.RoutePattern.RawText); 480Assert.Equal("/prefix/a", endpoint.RoutePattern.RawText); 487Assert.Equal("/prefix/b", endpoint.RoutePattern.RawText);
Matching\DfaMatcherTest.cs (2)
457Assert.Equal(endpoints.ToArray(), set.candidates.Select(e => e.Endpoint).OrderBy(e => ((RouteEndpoint)e).RoutePattern.RawText).ToArray()); 562Assert.Equal(endpoints.ToArray(), set.candidates.Select(e => e.Endpoint).OrderBy(e => ((RouteEndpoint)e).RoutePattern.RawText).ToArray());
Matching\RouteMatcherBuilder.cs (3)
35.GroupBy(e => (e.Order, e.RoutePattern.InboundPrecedence, e.RoutePattern.RawText)) 51var withoutDefaults = RoutePatternFactory.Parse(endpoint.RoutePattern.RawText); 64endpoint.RoutePattern.RawText,
Matching\TreeRouterMatcherBuilder.cs (1)
42.GroupBy(e => (e.Order, e.RoutePattern.InboundPrecedence, e.RoutePattern.RawText))
Patterns\RoutePatternFactoryTest.cs (16)
24original.RawText, 53original.RawText, 77original.RawText, 102original.RawText, 125original.RawText, 148original.RawText, 193original.RawText, 229original.RawText, 260original.RawText, 308original.RawText, 327original.RawText, 363original.RawText, 391original.RawText, 746Assert.Equal("/a/b/", combined.RawText); 772Assert.Equal("/a/{x=foo}/b", combined.RawText); 789Assert.Equal("/a/b", combined.RawText);
Patterns\RoutePatternParserTest.cs (3)
600Assert.Equal(routePattern, pattern.RawText); 654if (!string.Equals(x.RawText, y.RawText, StringComparison.Ordinal))
RouteEndpointBuilderTest.cs (2)
44Assert.Equal("/", endpoint.RoutePattern.RawText); 63Assert.Equal("/", endpoint.RoutePattern.RawText);
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
227if (endpoint is not RouteEndpointBuilder routeEndpoint || routeEndpoint is not { RoutePattern.RawText: { } pattern })
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
1600Assert.Equal("/new", newRouteEndpoint.RoutePattern.RawText);
RoutingSandbox (2)
UseEndpointRoutingStartup.cs (2)
39foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase)) 41sb.AppendLine(FormattableString.Invariant($"- {endpoint.RoutePattern.RawText}"));
RoutingWebSite (2)
UseEndpointRoutingStartup.cs (2)
45foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase)) 47sb.AppendLine(FormattableString.Invariant($"- {endpoint.RoutePattern.RawText}"));