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