133 references to AddRouting
Aspire.Dashboard.Tests (2)
Integration\MockOpenIdAuthority.cs (1)
27.ConfigureServices(services => services.AddRouting())
Middleware\ValidateTokenMiddlewareTests.cs (1)
75services.AddRouting();
Benchmarks (2)
StartupUsingEndpointRouting.cs (1)
15services.AddRouting();
StartupUsingRouter.cs (1)
14services.AddRouting();
blazor-devserver (1)
Server\Startup.cs (1)
24services.AddRouting();
HeaderPropagationSample (1)
Startup.cs (1)
14services.AddRouting();
Microsoft.AspNetCore (2)
WebHost.cs (2)
67return StartWith(url, services => services.AddRouting(), appBuilder => appBuilder.UseRouter(routeBuilder), applicationName: startupAssemblyName); 231services.AddRouting();
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
UserJwtsTests.cs (1)
87builder.Services.AddRouting();
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
413.AddRouting()
NegotiateHandlerTests.cs (1)
384.AddRouting()
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationAppBuilderExtensionsTests.cs (1)
68services.AddRouting();
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
137services.AddRouting();
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (3)
34services.AddRouting(); 66services.AddRouting(); 111services.AddRouting();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Latency\AcceptanceTests.cs (1)
34.AddRouting()
Latency\ChecpointAcceptanceTests.cs (1)
28.AddRouting()
Logging\AcceptanceTests.cs (1)
47services.AddRouting();
Logging\AcceptanceTests.Mvc.cs (1)
40.AddRouting() // Adds routing middleware.
Logging\AcceptanceTests.Routing.cs (1)
31.AddRouting()
Microsoft.AspNetCore.Diagnostics.Tests (4)
DeveloperExceptionPageMiddlewareTest.cs (2)
81services.AddRouting(); 140services.AddRouting();
StatusCodeMiddlewareTest.cs (2)
324.ConfigureServices(services => services.AddRouting()) 362.ConfigureServices(services => services.AddRouting())
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
GrpcSwaggerServiceExtensionsTests.cs (2)
28services.AddRouting(); 64services.AddRouting();
Infrastructure\OpenApiTestHelpers.cs (1)
28services.AddRouting();
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1913services.AddRouting(); 2014services.AddRouting();
Microsoft.AspNetCore.Localization.Routing.Tests (2)
RouteDataRequestCultureProviderTest.cs (2)
75services.AddRouting(); 197services.AddRouting();
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
282services.AddRouting();
Microsoft.AspNetCore.Mvc.Core.Test (12)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
272services.AddRouting();
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
273services.AddRouting();
Routing\AttributeRouteTest.cs (2)
769.AddRouting() 811.AddRouting()
Routing\AttributeRoutingTest.cs (1)
176services.AddRouting();
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
217services.AddRouting();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
67services.AddRouting();
Routing\EndpointRoutingUrlHelperTest.cs (1)
285services.AddRouting();
Routing\KnownRouteValueConstraintTests.cs (1)
30services.AddRouting();
Routing\PageLinkGeneratorExtensionsTest.cs (1)
187services.AddRouting();
Routing\UrlHelperBaseTest.cs (1)
107services.AddRouting();
Routing\UrlHelperTestBase.cs (1)
1163services.AddRouting();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
58services.AddRouting();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
PageRemoteAttributeTest.cs (1)
190serviceCollection.AddRouting();
RemoteAttributeTest.cs (1)
491serviceCollection.AddRouting();
Microsoft.AspNetCore.Rewrite.Tests (1)
MiddlewareTests.cs (1)
650s.AddRouting();
Microsoft.AspNetCore.Routing (2)
DependencyInjection\RoutingServiceCollectionExtensions.cs (2)
37/// <see cref="AddRouting(IServiceCollection)" /> except that it 137services.AddRouting();
Microsoft.AspNetCore.Routing.FunctionalTests (30)
EndpointRoutingIntegrationTest.cs (10)
48services.AddRouting(); 80services.AddRouting(); 112services.AddRouting(); 144services.AddRouting(); 173services.AddRouting(); 205services.AddRouting(); 236services.AddRouting(); 267services.AddRouting(); 299services.AddRouting(); 335services.AddRouting();
MinimalFormTests.cs (15)
41services.AddRouting(); 101services.AddRouting(); 151services.AddRouting(); 190services.AddRouting(); 236services.AddRouting(); 267services.AddRouting(); 314services.AddRouting(); 410services.AddRouting(); 462services.AddRouting(); 521services.AddRouting(); 573services.AddRouting(); 625services.AddRouting(); 674services.AddRouting(); 715.ConfigureServices(services => services.AddRouting()) 742.ConfigureServices(services => services.AddRouting())
RouteHandlerTest.cs (2)
39services.AddRouting(); 87services.AddRouting();
ShortCircuitTests.cs (2)
44services.AddRouting(); 82services.AddRouting();
WebHostBuilderExtensionsTest.cs (1)
89.ConfigureServices(services => services.AddRouting())
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
32services.AddRouting();
Microsoft.AspNetCore.Routing.Tests (21)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
361services.AddRouting();
Builder\RoutingBuilderExtensionsTest.cs (1)
128services.AddRouting();
EndpointRoutingMiddlewareTest.cs (1)
407services.AddRouting();
Internal\DfaGraphWriterTest.cs (1)
16services.AddRouting();
LinkGeneratorTestBase.cs (1)
25services.AddRouting();
LinkParserTestBase.cs (1)
17services.AddRouting();
Matching\DfaMatcherConformanceTest.cs (1)
67.AddRouting()
Matching\HostMatcherPolicyIntegrationTestBase.cs (1)
372.AddRouting()
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
351.AddRouting()
Patterns\DefaultRoutePatternTransformerTest.cs (1)
14services.AddRouting();
RequestDelegateRouteBuilderExtensionsTest.cs (1)
127services.AddRouting();
RouteCollectionTest.cs (2)
602services.AddRouting(); 623services.AddRouting();
RouteHandlerOptionsTests.cs (3)
22services.AddRouting(); 49services.AddRouting(); 62services.AddRouting();
RouteOptionsTests.cs (1)
34services.AddRouting();
RouteTest.cs (2)
656services.AddRouting(); 1518services.AddRouting();
RoutingServiceCollectionExtensionsTests.cs (2)
21RoutingServiceCollectionExtensions.AddRouting(null); 75services.AddRouting();
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
44services.AddRouting();
Microsoft.AspNetCore.StaticAssets.Tests (9)
StaticAssetsIntegrationTests.cs (9)
45services.AddRouting(); 95services.AddRouting(); 146services.AddRouting(); 198services.AddRouting(); 255services.AddRouting(); 312services.AddRouting(); 367services.AddRouting(); 420services.AddRouting(); 603services.AddRouting();
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (2)
29services.AddRouting(); 82services.AddRouting();
StaticFileMiddlewareTests.cs (1)
51.ConfigureServices(services => { services.AddSingleton(LoggerFactory); services.AddRouting(); })
Microsoft.AspNetCore.StaticFiles.Tests (6)
DefaultFilesMiddlewareTests.cs (2)
114services => { services.AddDirectoryBrowser(); services.AddRouting(); }); 154services => { services.AddDirectoryBrowser(); services.AddRouting(); });
DirectoryBrowserMiddlewareTests.cs (2)
129services => { services.AddDirectoryBrowser(); services.AddRouting(); }); 166services => { services.AddDirectoryBrowser(); services.AddRouting(); });
StaticFileMiddlewareTests.cs (2)
356}, services => services.AddRouting()); 404}, services => services.AddRouting());
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2617builder.Services.AddRouting();
Microsoft.Extensions.Diagnostics.Probes.Tests (7)
TcpEndpointProbesExtensionsTests.cs (7)
32.AddRouting() 47.AddRouting() 69.AddRouting() 84.AddRouting() 114.AddRouting() 139.AddRouting() 159.AddRouting()
RoutingSandbox (1)
UseRouterStartup.cs (1)
15services.AddRouting();
RoutingWebSite (2)
MapFallbackStartup.cs (1)
10services.AddRouting();
UseRouterStartup.cs (1)
15services.AddRouting();