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