Implemented interface member:
property
Attributes
Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.Attributes
2 writes to Attributes
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerModel.cs (2)
35
Attributes
= new List<object>(attributes);
58
Attributes
= new List<object>(other.Attributes);
18 references to Attributes
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
119
if (controller.
Attributes
.OfType<IApiBehaviorMetadata>().Any())
ApplicationModels\ApiConventionApplicationModelConvention.cs (2)
63
var apiConventionAttributes = controller.
Attributes
.OfType<ApiConventionTypeAttribute>().ToArray();
80
action.Controller.
Attributes
.OfType<ProducesErrorResponseTypeAttribute>().FirstOrDefault() ??
ApplicationModels\ApplicationModelConventions.cs (1)
39
controller.
Attributes
ApplicationModels\AuthorizationApplicationModelProvider.cs (2)
44
var controllerModelAuthData = controllerModel.
Attributes
.OfType<IAuthorizeData>().ToArray();
49
foreach (var attribute in controllerModel.
Attributes
.OfType<IAllowAnonymous>())
ApplicationModels\ControllerModel.cs (1)
58
Attributes = new List<object>(other.
Attributes
);
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\ControllerModelTest.cs (2)
50
Assert.NotSame(controller.
Attributes
, controller2.
Attributes
);
ApplicationModels\DefaultApplicationModelProviderTest.cs (6)
444
Assert.Equal(2, model.
Attributes
.Count);
447
Assert.Contains(route.Attribute, model.
Attributes
);
450
Assert.Contains(route.Attribute, model.
Attributes
);
466
Assert.Equal(2, model.
Attributes
.Count);
469
Assert.Contains(route.Attribute, model.
Attributes
);
472
Assert.Contains(route.Attribute, model.
Attributes
);
Microsoft.AspNetCore.Mvc.Cors (2)
CorsApplicationModelProvider.cs (2)
47
var enableCors = controllerModel.
Attributes
.OfType<IEnableCorsAttribute>().FirstOrDefault();
53
var disableCors = controllerModel.
Attributes
.OfType<IDisableCorsAttribute>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryApplicationModelProvider.cs (1)
31
if (HasValidAntiforgeryMetadata(controllerModel.
Attributes
, controllerModel.Filters))