57 references to Map
Certificate.Optional.Sample (2)
Startup.cs (2)
47endpoints.Map("/auth", context => 52endpoints.Map("{*url}", context =>
Certificate.Sample (1)
Startup.cs (1)
52endpoints.Map("{*url}", context =>
HttpLogging.Sample (1)
Startup.cs (1)
28endpoints.Map("/", async context =>
Logging.W3C.Sample (1)
Startup.cs (1)
31endpoints.Map("/", async context =>
Microsoft.AspNetCore.Authentication.Negotiate.Test (10)
EventTests.cs (2)
436builder.Map("/Authenticate", async context => 450builder.Map("/418", context =>
NegotiateHandlerTests.cs (8)
407builder.Map("/Anonymous1", context => 414builder.Map("/Anonymous2", context => 421builder.Map("/Authenticate", async context => 435builder.Map("/AuthenticateAndRetrieveRBACClaims", async context => 453builder.Map("/AlreadyAuthenticated", async context => 462builder.Map("/Unauthorized", async context => 469builder.Map("/SignIn", context => 474builder.Map("/signOut", context =>
Microsoft.AspNetCore.Components.Server (4)
Builder\ComponentEndpointRouteBuilderExtensions.cs (4)
81var disconnectEndpoint = endpoints.Map( 86var jsInitializersEndpoint = endpoints.Map( 114var blazorEndpoint = endpoints.Map("/_framework/blazor.server.js", app.Build()) 121endpoints.Map("/_framework/blazor.server.js.map", app.Build())
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
71return endpoints.Map(pattern, pipeline).WithDisplayName(DefaultDisplayName);
Microsoft.AspNetCore.Diagnostics.Tests (4)
ExceptionHandlerTest.cs (4)
803endpoints.Map("/handle-errors", c => 857endpoints.Map("/handle-errors", c => 909endpoints.Map("/handle-errors", c => 967endpoints.Map("/handle-errors", c =>
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UsePathBaseExtensionsTests.cs (1)
154endpoints.Map("/path", context => context.Response.WriteAsync("Response"));
Microsoft.AspNetCore.Http.Connections (2)
ConnectionEndpointRouteBuilderExtensions.cs (2)
102var negotiateBuilder = endpoints.Map(pattern + "/negotiate", negotiateHandler); 114var executeBuilder = endpoints.Map(pattern, executehandler);
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ControllerActionEndpointDataSource.cs (1)
141endpoints.Map(
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionEndpointDataSource.cs (1)
81endpoints.Map(
Microsoft.AspNetCore.Routing (2)
Builder\FallbackEndpointRouteBuilderExtensions.cs (1)
77var conventionBuilder = endpoints.Map(pattern, requestDelegate);
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
37group.Map(route, _shortCircuitDelegate)
Microsoft.AspNetCore.Routing.FunctionalTests (10)
EndpointRoutingIntegrationTest.cs (9)
41app.UseEndpoints(b => b.Map("/", TestDelegate)); 73app.UseEndpoints(b => b.Map("/", TestDelegate)); 105app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 136app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 167app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 198app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 228app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 260app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin())); 328app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin()));
ShortCircuitTests.cs (1)
32b.Map("/shortcircuit", context =>
Microsoft.AspNetCore.Routing.Tests (10)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (9)
193builder.Map("/1", d => null).WithDisplayName("Test endpoint 1"); 194builder.Map("/2", d => null).WithDisplayName("Test endpoint 2"); 200builder.Map("/3", d => null).WithDisplayName("Test endpoint 3"); 201builder.Map("/4", d => null).WithDisplayName("Test endpoint 4"); 258builder.Map("/1", d => null).WithDisplayName("Test endpoint 1"); 259builder.Map("/2", d => null).WithDisplayName("Test endpoint 2"); 265builder.Map("/3", d => null).WithDisplayName("Test endpoint 3"); 266builder.Map("/4", d => null).WithDisplayName("Test endpoint 4"); 314endpoints.Map("/1", d => Task.CompletedTask).WithDisplayName("Test endpoint 1");
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
47routes.Map(template, action);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
122endpoints.Map("/redirect/{*anything}", context =>
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
FallbackStaticFileTest.cs (2)
41endpoints.Map("/hello", context => 93endpoints.Map("/hello", context =>
RoutingSandbox (2)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
16return endpoints.Map(pattern, pipeline);
UseEndpointRoutingStartup.cs (1)
80endpoints.Map("/getwithattributes", Handler);
RoutingWebSite (1)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
16return endpoints.Map(template, pipeline).WithDisplayName("Hello " + greeter);