20 writes to Controller
Microsoft.AspNetCore.Mvc.Core (3)
ApplicationModels\ActionModel.cs (1)
56Controller = other.Controller;
ApplicationModels\ControllerModel.cs (1)
64Actions = new List<ActionModel>(other.Actions.Select(a => new ActionModel(a) { Controller = this }));
ApplicationModels\DefaultApplicationModelProvider.cs (1)
81actionModel.Controller = controllerModel;
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationModels\ActionModelTest.cs (1)
73action.Controller = new ControllerModel
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
26Controller = controllerModel, 53Controller = controllerModel, 96Controller = controllerModel,
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
69Controller = controller, 172Controller = controllerModel,
ApplicationModels\ApiVisibilityConventionTest.cs (1)
58Controller = new ControllerModel(typeof(object).GetTypeInfo(), new object[0]),
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
42actionModel.Controller = controller; 74actionModel.Controller = controller; 100actionModel.Controller = controller; 126actionModel.Controller = controller;
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1162actionModel.Controller = controller;
ApplicationModels\ControllerModelTest.cs (1)
23action.Controller = controller;
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (3)
238Controller = controllerModel 312Controller = controllerModel 345Controller = controllerModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
167Controller = controllerModel,
20 references to Controller
Microsoft.AspNetCore.Mvc.Core (15)
ApplicationModels\ActionAttributeRouteModel.cs (6)
16var controllerSelectors = actionModel.Controller.Selectors 23if (actionModel.Controller.Selectors.Count > 0) 34additionalSelector = new SelectorModel(actionModel.Controller.Selectors[0]); 145var controllerAttributeRoutes = actionModel.Controller.Selectors 167for (var i = 0; i < actionModel.Controller.Selectors.Count; i++) 170var controllerSelector = actionModel.Controller.Selectors[i];
ApplicationModels\ActionModel.cs (4)
56Controller = other.Controller; 169if (Controller == null) 174var controllerType = TypeNameHelper.GetTypeDisplayName(Controller.ControllerType); 175var controllerAssembly = Controller?.ControllerType.Assembly.GetName().Name;
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
93if (!IsAttributeRouted(actionModel.Controller.Selectors) &&
ApplicationModels\ApiConventionApplicationModelConvention.cs (3)
62var controller = action.Controller; 80action.Controller.Attributes.OfType<ProducesErrorResponseTypeAttribute>().FirstOrDefault() ?? 81action.Controller.ControllerType.Assembly.GetCustomAttribute<ProducesErrorResponseTypeAttribute>() ??
ApplicationModels\ApiVisibilityConvention.cs (1)
19if (action.Controller.ApiExplorer.IsVisible == null && action.ApiExplorer.IsVisible == null)
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\ApiVisibilityConventionTest.cs (1)
44action.Controller.ApiExplorer.IsVisible = false;
ApplicationModels\ControllerModelTest.cs (2)
54Assert.NotSame(controller, controller2.Actions[0].Controller); 55Assert.Same(controller2, controller2.Actions[0].Controller);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (1)
474action.Controller.Actions.Remove(action);
Mvc.RoutingWebSite (1)
ControllerRouteTokenTransformerConvention.cs (1)
22return action.Controller.ControllerType == _controllerType;