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