17 references to AddControllers
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
30services.AddControllers();
FilesWebSite (1)
Startup.cs (1)
11services.AddControllers()
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.Mvc.cs (1)
41.AddControllers(); // Allows to read routes from classes annotated with [ApiController] attribute.
Logging\AcceptanceTests.Routing.cs (1)
32.AddControllers();
Microsoft.AspNetCore.Mvc (2)
MvcServiceCollectionExtensions.cs (2)
250/// To add services for controllers for APIs call <see cref="AddControllers(IServiceCollection)"/>. 281/// To add services for controllers for APIs call <see cref="AddControllers(IServiceCollection)"/>.
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
SystemTextJsonOutputFormatterTest.cs (1)
33serviceCollection.AddControllers()
Microsoft.AspNetCore.Mvc.Test (4)
MvcServiceCollectionExtensionsTest.cs (4)
106services.AddControllers(); 122services.AddControllers(); 188services.AddControllers(); 190services.AddControllers();
Mvc.RoutingWebSite (1)
StartupForRouteGroupsWithMetadata.cs (1)
17var builder = services.AddControllers();
Negotiate.Client (1)
Startup.cs (1)
23services.AddControllers();
Negotiate.Server (1)
Startup.cs (1)
24services.AddControllers();
Sample (1)
Program.cs (1)
14builder.Services.AddControllers();
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
10builder.Services.AddControllers();
XmlFormattersWebSite (1)
Startup.cs (1)
16services.AddControllers()