34 instantiations of ControllerModel
ApplicationModelWebSite (1)
Conventions\MultipleAreasControllerConvention.cs (1)
20var controllerCopy = new ControllerModel(controller);
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
159var controllerModel = new ControllerModel(typeInfo, attributes);
Microsoft.AspNetCore.Mvc.Core.Test (31)
ApplicationModels\ActionModelTest.cs (1)
73action.Controller = new ControllerModel
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
22var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }); 44var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }) 87var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() })
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
66var controller = new ControllerModel(typeof(object).GetTypeInfo(), Array.Empty<object>()); 169var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);
ApplicationModels\ApiVisibilityConventionTest.cs (1)
58Controller = new ControllerModel(typeof(object).GetTypeInfo(), new object[0]),
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
17var controller = new ControllerModel( 66var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 91var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 117var controller = new ControllerModel(typeof(TestController).GetTypeInfo(),
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1155var controller = new ControllerModel(typeof(ConventionsController).GetTypeInfo(),
ApplicationModels\ControllerModelTest.cs (4)
17var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 37var controller2 = new ControllerModel(controller); 64var controller = new ControllerModel( 84var controller2 = new ControllerModel(controller);
ApplicationModels\PropertyModelTest.cs (1)
18propertyModel.Controller = new ControllerModel(typeof(TestController).GetTypeInfo(), new List<object>());
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (14)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>()); 47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())); 154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>())); 194new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>()) 214new ControllerModel(typeof(HelloController).GetTypeInfo(), new[] { controllerModelConvention }) 231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
164var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);
140 references to ControllerModel
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 (8)
Controllers\ControllerModelController.cs (1)
28public void Apply(ControllerModel model)
Conventions\CloneActionConvention.cs (1)
10public void Apply(ControllerModel controller)
Conventions\ControllerDescriptionAttribute.cs (1)
17public void Apply(ControllerModel model)
Conventions\ControllerLicenseConvention.cs (1)
10public void Apply(ControllerModel controller)
Conventions\MultipleAreasControllerConvention.cs (4)
13var controllerModels = new List<ControllerModel>(); 14foreach (var controller in application.Controllers) 20var controllerCopy = new ControllerModel(controller); 26foreach (var model in controllerModels)
Microsoft.AspNetCore.Mvc.Core (43)
ApplicationModels\ActionModel.cs (6)
88/// <see cref="ApplicationModel.ApiExplorer"/> and <see cref="ControllerModel.ApiExplorer"/>. 98/// Gets or sets the <see cref="ControllerModel"/>. 100public ControllerModel Controller { get; set; } = default!; 131/// to the key <c>action</c> and the value of <see cref="ControllerModel.ControllerName"/> is 138/// <see cref="ControllerModel.RouteValues"/>. 149/// <see cref="ApplicationModel.Properties"/> and <see cref="ControllerModel.Properties"/>.
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (2)
71foreach (var controller in context.Result.Controllers) 117private static bool IsApiController(ControllerModel controller)
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
62var controller = action.Controller;
ApplicationModels\ApplicationModel.cs (4)
21Controllers = new List<ControllerModel>(); 32/// <see cref="ControllerModel.ApiExplorer"/> or <see cref="ActionModel.ApiExplorer"/>. 40/// Gets the <see cref="ControllerModel"/> instances. 42public IList<ControllerModel> Controllers { get; }
ApplicationModels\ApplicationModelConventions.cs (1)
34foreach (var controller in controllers)
ApplicationModels\ApplicationModelFactory.cs (3)
56Func<ApplicationModel, ControllerModel, ActionModel, SelectorModel, TResult> flattener) 65foreach (var controller in application.Controllers) 119ControllerModel controller,
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
42foreach (var controllerModel in context.Result.Controllers)
ApplicationModels\ControllerActionDescriptorBuilder.cs (5)
28ControllerModel controller, 54private static void AddControllerPropertyDescriptors(ActionDescriptor actionDescriptor, ControllerModel controller) 103ControllerModel controller, 148ControllerModel controller, 214ControllerModel controller,
ApplicationModels\ControllerModel.cs (5)
20/// Initializes a new instance of <see cref="ControllerModel"/>. 44/// Initializes a new instance of <see cref="ControllerModel"/>. 47public ControllerModel(ControllerModel other) 80/// <see cref="ControllerModel.ApiExplorer"/> allows configuration of settings for ApiExplorer 83/// Settings applied by <see cref="ControllerModel.ApiExplorer"/> override settings from
ApplicationModels\DefaultApplicationModelProvider.cs (5)
53var controllerModel = CreateControllerModel(controllerType); 104/// Creates a <see cref="ControllerModel"/> for the given <see cref="TypeInfo"/>. 107/// <returns>A <see cref="ControllerModel"/> for the given <see cref="TypeInfo"/>.</returns> 108internal static ControllerModel CreateControllerModel(TypeInfo typeInfo) 159var controllerModel = new ControllerModel(typeInfo, attributes);
ApplicationModels\IControllerModelConvention.cs (4)
7/// Allows customization of the <see cref="ControllerModel"/>. 20/// Called to apply the convention to the <see cref="ControllerModel"/>. 22/// <param name="controller">The <see cref="ControllerModel"/>.</param> 23void Apply(ControllerModel controller);
ApplicationModels\PropertyModel.cs (3)
11/// A type which is used to represent a property in a <see cref="ControllerModel"/>. 44/// Gets or sets the <see cref="ControllerModel"/> this <see cref="PropertyModel"/> is associated with. 46public ControllerModel Controller { get; set; } = default!;
DependencyInjection\ApplicationModelConventionExtensions.cs (3)
132foreach (var controller in controllers) 190foreach (var controller in controllers) 218foreach (var controller in controllers)
Microsoft.AspNetCore.Mvc.Core.Test (57)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
22var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }); 44var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }) 87var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() })
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
66var controller = new ControllerModel(typeof(object).GetTypeInfo(), Array.Empty<object>()); 169var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);
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)
17var controller = new ControllerModel( 66var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 91var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 117var controller = new ControllerModel(typeof(TestController).GetTypeInfo(),
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1137.Setup(c => c.Apply(It.IsAny<ControllerModel>())) 1155var controller = new ControllerModel(typeof(ConventionsController).GetTypeInfo(),
ApplicationModels\ControllerModelTest.cs (6)
17var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 37var controller2 = new ControllerModel(controller); 64var controller = new ControllerModel( 84var controller2 = new ControllerModel(controller); 87foreach (var property in typeof(ControllerModel).GetProperties()) 130else if (property.Name.Equals(nameof(ControllerModel.DisplayName)))
ApplicationModels\DefaultApplicationModelProviderTest.cs (17)
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); 378var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 395var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 410var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 425var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 439var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 461var model = DefaultApplicationModelProvider.CreateControllerModel(typeInfo); 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 (13)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>()); 47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 161foreach (var controller in app.Controllers) 231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 448public void Apply(ControllerModel controller) 456public void Apply(ControllerModel controller)
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 (11)
Filters\AntiforgeryApplicationModelProviderTest.cs (5)
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); 164var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);
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();