1 write to Controllers
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ApplicationModel.cs (1)
21Controllers = new List<ControllerModel>();
88 references to Controllers
ApiExplorerWebSite (3)
ApiExplorerInboundOutboundConvention.cs (1)
24foreach (var controller in application.Controllers)
ApiExplorerVisibilityDisabledConvention.cs (1)
23foreach (var controller in application.Controllers)
ApiExplorerVisibilityEnabledConvention.cs (1)
15foreach (var controller in application.Controllers)
ApplicationModelWebSite (2)
Conventions\MultipleAreasControllerConvention.cs (2)
14foreach (var controller in application.Controllers) 28application.Controllers.Add(model);
Microsoft.AspNetCore.Mvc.Core (8)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
71foreach (var controller in context.Result.Controllers)
ApplicationModels\ApplicationModelConventions.cs (1)
32var controllers = applicationModel.Controllers.ToArray();
ApplicationModels\ApplicationModelFactory.cs (1)
65foreach (var controller in application.Controllers)
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
42foreach (var controllerModel in context.Result.Controllers)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
59context.Result.Controllers.Add(controllerModel);
DependencyInjection\ApplicationModelConventionExtensions.cs (3)
131var controllers = application.Controllers.ToArray(); 189var controllers = application.Controllers.ToArray(); 217var controllers = application.Controllers.ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (47)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
31context.Result.Controllers.Add(controllerModel); 66context.Result.Controllers.Add(controllerModel); 109context.Result.Controllers.Add(controllerModel);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (7)
32var controller = Assert.Single(context.Result.Controllers); 50var controller = Assert.Single(context.Result.Controllers); 68var controller = Assert.Single(context.Result.Controllers); 89var controller = Assert.Single(context.Result.Controllers); 115var controller = Assert.Single(context.Result.Controllers); 187var controller = Assert.Single(context.Result.Controllers); 199var controller = Assert.Single(context.Result.Controllers);
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
72var controller = Assert.Single(context.Result.Controllers);
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
37applicationModel.Controllers.Add(controller); 69applicationModel.Controllers.Add(controller); 95applicationModel.Controllers.Add(controller); 121applicationModel.Controllers.Add(controller);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1158applicationModel.Controllers.Add(controller);
ApplicationModels\DefaultApplicationModelProviderTest.cs (12)
55context.Result.Controllers.OrderBy(c => c.ControllerType.Name), 75var controllerModel = Assert.Single(context.Result.Controllers); 127var controllerModel = Assert.Single(context.Result.Controllers); 179var controllerModel = Assert.Single(context.Result.Controllers); 223var controllerModel = Assert.Single(context.Result.Controllers); 271var controllerModel = Assert.Single(context.Result.Controllers); 299var controllerModel = Assert.Single(context.Result.Controllers); 325var controllerModel = Assert.Single(context.Result.Controllers); 345var controllerModel = Assert.Single(context.Result.Controllers); 365var controllerModel = Assert.Single(context.Result.Controllers); 1258var model = Assert.Single(context.Result.Controllers); 1274var model = Assert.Single(context.Result.Controllers);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
518var controllerModel = Assert.Single(context.Result.Controllers); 927var controller = Assert.Single(context.Result.Controllers);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (17)
19app.Controllers.Add(controllerModel); 65app.Controllers.Add(controllerModel1); 66app.Controllers.Add(controllerModel2); 123app.Controllers.Add(controllerModel1); 124app.Controllers.Add(controllerModel2); 153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())); 154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>())); 161foreach (var controller in app.Controllers) 193applicationModel.Controllers.Add( 213applicationModel.Controllers.Add( 240applicationModel.Controllers.Add(controllerModel); 265applicationModel.Controllers.Add(controllerModel); 291applicationModel.Controllers.Add(controllerModel); 309app.Controllers.Add(controllerModel); 342app.Controllers.Add(controllerModel); 458controller.Application.Controllers.Remove(controller); 466application.Controllers.RemoveAt(0);
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
45foreach (var controllerModel in context.Result.Controllers)
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
33var model = Assert.Single(context.Result.Controllers); 52var model = Assert.Single(context.Result.Controllers); 71var controller = Assert.Single(context.Result.Controllers); 89var controller = Assert.Single(context.Result.Controllers); 108var controller = Assert.Single(context.Result.Controllers); 127var controller = Assert.Single(context.Result.Controllers); 148var model = Assert.Single(context.Result.Controllers); 167var model = Assert.Single(context.Result.Controllers); 186var model = Assert.Single(context.Result.Controllers); 204var model = Assert.Single(context.Result.Controllers);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
AuthorizeFilterIntegrationTest.cs (4)
35var controller = Assert.Single(applicationModelProviderContext.Result.Controllers); 63var controller = Assert.Single(applicationModelProviderContext.Result.Controllers); 94var controller = Assert.Single(applicationModelProviderContext.Result.Controllers); 130var controller = Assert.Single(applicationModelProviderContext.Result.Controllers);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Filters\AntiforgeryApplicationModelProvider.cs (1)
28foreach (var controllerModel in context.Result.Controllers)
Filters\TempDataApplicationModelProvider.cs (1)
32foreach (var controllerModel in context.Result.Controllers)
Filters\ViewDataAttributeApplicationModelProvider.cs (1)
24foreach (var controllerModel in context.Result.Controllers)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Filters\AntiforgeryApplicationModelProviderTest.cs (4)
26var controller = Assert.Single(context.Result.Controllers); 60var controller = Assert.Single(context.Result.Controllers); 87var controller = Assert.Single(context.Result.Controllers); 111var controller = Assert.Single(context.Result.Controllers);
Filters\TempDataApplicationModelProviderTest.cs (3)
27var controller = Assert.Single(context.Result.Controllers); 75var controller = context.Result.Controllers.SingleOrDefault(); 96var controller = context.Result.Controllers.SingleOrDefault();
Filters\ViewDataAttributeApplicationModelProviderTest.cs (3)
25var controller = Assert.Single(context.Result.Controllers); 41var controller = Assert.Single(context.Result.Controllers); 55var controller = context.Result.Controllers.SingleOrDefault();