32 references to Controllers
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\ControllerActionDescriptorProvider.cs (1)
87return feature.Controllers;
Controllers\ControllerFeatureProvider.cs (2)
26if (IsController(type) && !feature.Controllers.Contains(type)) 28feature.Controllers.Add(type);
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
127foreach (var controller in feature.Controllers.Select(c => c.AsType()))
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
144foreach (var controller in feature.Controllers.Select(c => c.AsType()))
Microsoft.AspNetCore.Mvc.Core.Test (22)
Controllers\ControllerFeatureProviderTest.cs (21)
25var discovered = Assert.Single(feature.Controllers); 41var discovered = Assert.Single(feature.Controllers); 57var discovered = Assert.Single(feature.Controllers); 73Assert.Empty(feature.Controllers); 88Assert.Empty(feature.Controllers); 103Assert.Empty(feature.Controllers); 118Assert.Empty(feature.Controllers); 133Assert.Empty(feature.Controllers); 148Assert.Empty(feature.Controllers); 163var discovered = Assert.Single(feature.Controllers); 179Assert.Empty(feature.Controllers); 194Assert.Empty(feature.Controllers); 209var discovered = Assert.Single(feature.Controllers); 225var discovered = Assert.Single(feature.Controllers); 241var discovered = Assert.Single(feature.Controllers); 257var discovered = Assert.Single(feature.Controllers); 274var discovered = Assert.Single(feature.Controllers); 290Assert.Empty(feature.Controllers); 323Assert.Equal(expected, feature.Controllers.ToList()); 358Assert.Equal(expected, feature.Controllers.ToList()); 380Assert.Empty(feature.Controllers);
TestFeatureProvider.cs (1)
28feature.Controllers.Add(type);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (3)
316feature.Controllers.Clear(); 317feature.Controllers.Add(typeof(TestController).GetTypeInfo()); 318feature.Controllers.Add(typeof(MyApiController).GetTypeInfo());
Mvc.RoutingWebSite (2)
StartupForRouteGroupsWithMetadata.cs (2)
27f.Controllers.Add(typeof(ItemsController).GetTypeInfo()); 28f.Controllers.Add(typeof(ConventionalControllerWithMetadata).GetTypeInfo());