32 references to MapControllers
BasicWebSite (1)
StartupWithCustomInvalidModelStateFactory.cs (1)
46
endpoints.
MapControllers
();
CorsWebSite (1)
Startup.cs (1)
77
endpoints.
MapControllers
();
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
21
endpoints.
MapControllers
();
HostedBlazorWebassemblyApp.Server (1)
Startup.cs (1)
58
endpoints.
MapControllers
();
Identity.DefaultUI.WebSite (1)
StartupBase.cs (1)
80
endpoints.
MapControllers
();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.Mvc.cs (1)
48
.UseEndpoints(endpoints => endpoints.
MapControllers
());
Logging\AcceptanceTests.Routing.cs (1)
41
endpoints.
MapControllers
();
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
AntiforgeryMiddlewareTest.cs (6)
31
app.
MapControllers
();
63
var exception = Assert.Throws<InvalidOperationException>(() => app.
MapControllers
());
77
app.
MapControllers
();
115
app.
MapControllers
();
147
app.
MapControllers
();
179
app.
MapControllers
();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (8)
25
var builder = endpointBuilder.
MapControllers
();
55
var builder = endpointBuilder.
MapControllers
();
85
var builder = endpointBuilder.
MapControllers
();
117
var builder = endpointBuilder.
MapControllers
();
149
var builder = endpointBuilder.
MapControllers
();
181
var builder = endpointBuilder.
MapControllers
();
215
var builder = group.
MapControllers
();
250
var builder = group.
MapControllers
();
Mvc.RoutingWebSite (4)
StartupForDynamicOrder.cs (1)
53
endpoints.
MapControllers
();
StartupForEndpointFilters.cs (1)
28
builder.
MapControllers
().AddEndpointFilterFactory((context, next) =>
StartupForRouteGroupsWithMetadata.cs (1)
38
builder.
MapControllers
();
StartupRoutingDifferentBranches.cs (1)
66
endpoints.
MapControllers
();
MvcSandbox (1)
Startup.cs (1)
27
endpoints.
MapControllers
();
Negotiate.Client (1)
Startup.cs (1)
35
endpoints.
MapControllers
();
Negotiate.Server (1)
Startup.cs (1)
45
endpoints.
MapControllers
();
RazorPagesWebSite (2)
Startup.cs (1)
30
endpoints.
MapControllers
();
StartupWithClientValidationDisabled.cs (1)
33
endpoints.
MapControllers
();
Sample (1)
Program.cs (1)
118
app.
MapControllers
();
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
20
app.
MapControllers
();