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