3 writes to RoutePattern
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
43RoutePattern = routePattern;
Microsoft.AspNetCore.Routing.Tests (1)
Builder\GroupTest.cs (1)
246((RouteEndpointBuilder)builder).RoutePattern = RoutePatternFactory.Parse("/bar");
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
233routeEndpoint.RoutePattern = RoutePatternFactory.Parse(
41 references to RoutePattern
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointFactory.cs (1)
74builder.DisplayName = $"{builder.RoutePattern.RawText} ({pageDefinition.DisplayName})";
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
233if (rb.RoutePattern.RawText == frameworkEndpoint)
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.Core.Test (1)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
433builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern.RawText });
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
96var pattern = routeEndpointBuilder.RoutePattern;
Microsoft.AspNetCore.Routing (4)
RouteEndpointBuilder.cs (4)
20/// Gets or sets the <see cref="RoutePattern"/> associated with this endpoint. 33/// <param name="routePattern">The <see cref="RoutePattern"/> to use in URL matching.</param> 57RoutePattern, 59CreateMetadataCollection(Metadata, RoutePattern),
Microsoft.AspNetCore.Routing.Tests (29)
Builder\GroupTest.cs (2)
165outerPattern = ((RouteEndpointBuilder)builder).RoutePattern; 169innerPattern = ((RouteEndpointBuilder)builder).RoutePattern;
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); 765Assert.Single(routeEndpointBuilder.RoutePattern.Parameters); 766Assert.True(routeEndpointBuilder.RoutePattern.Parameters[0].IsCatchAll);
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
227if (endpoint is not RouteEndpointBuilder routeEndpoint || routeEndpoint is not { RoutePattern.RawText: { } pattern })