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