2 writes to ControllerType
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerModel.cs (2)
31ControllerType = controllerType; 52ControllerType = other.ControllerType;
25 references to ControllerType
ApiExplorerWebSite (2)
ApiExplorerInboundOutboundConvention.cs (1)
26if (controller.ControllerType == _type)
ApiExplorerVisibilityDisabledConvention.cs (1)
25if (controller.ControllerType == _type)
ApplicationModelWebSite (1)
Conventions\MultipleAreasControllerConvention.cs (1)
16var areaNames = controller.ControllerType.GetCustomAttributes<MultipleAreasAttribute>()?.FirstOrDefault()?.AreaNames;
Microsoft.AspNetCore.Mvc.Core (10)
ApplicationModels\ActionModel.cs (2)
174var controllerType = TypeNameHelper.GetTypeDisplayName(Controller.ControllerType); 175var controllerAssembly = Controller?.ControllerType.Assembly.GetName().Name;
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
124var controllerAssembly = controller.ControllerType.Assembly;
ApplicationModels\ApiConventionApplicationModelConvention.cs (2)
66var controllerAssembly = controller.ControllerType.Assembly; 81action.Controller.ControllerType.Assembly.GetCustomAttribute<ProducesErrorResponseTypeAttribute>() ??
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
39actionDescriptor.ControllerTypeInfo = controller.ControllerType;
ApplicationModels\ControllerModel.cs (4)
52ControllerType = other.ControllerType; 98MemberInfo ICommonModel.MemberInfo => ControllerType; 154var controllerType = TypeNameHelper.GetTypeDisplayName(ControllerType); 155var controllerAssembly = ControllerType.Assembly.GetName().Name;
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
30var context = new ApplicationModelProviderContext(new[] { controllerModel.ControllerType }); 65var context = new ApplicationModelProviderContext(new[] { controllerModel.ControllerType }); 108var context = new ApplicationModelProviderContext(new[] { controllerModel.ControllerType });
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (2)
21var propertyInfo = controller.ControllerType.AsType().GetProperty("BoundProperty"); 33controller.ControllerType.AsType().GetProperty("UnboundProperty"),
ApplicationModels\ControllerModelTest.cs (1)
26controller.ControllerType.AsType().GetProperty("TestProperty"),
ApplicationModels\DefaultApplicationModelProviderTest.cs (3)
55context.Result.Controllers.OrderBy(c => c.ControllerType.Name), 56c => Assert.Equal(typeof(ConventionallyRoutedController).GetTypeInfo(), c.ControllerType), 57c => Assert.Equal(typeof(ModelBinderController).GetTypeInfo(), c.ControllerType));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\TempDataApplicationModelProvider.cs (1)
34var modelType = controllerModel.ControllerType.AsType();
Filters\ViewDataAttributeApplicationModelProvider.cs (1)
26var controllerType = controllerModel.ControllerType.AsType();
Mvc.RoutingWebSite (1)
ControllerRouteTokenTransformerConvention.cs (1)
22return action.Controller.ControllerType == _controllerType;