Implemented interface member:
property
Attributes
Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.Attributes
2 writes to Attributes
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ActionModel.cs (2)
35
Attributes
= new List<object>(attributes);
59
Attributes
= new List<object>(other.Attributes);
14 references to Attributes
ApiExplorerWebSite (1)
ApiExplorerRouteChangeConvention.cs (1)
19
if (action.
Attributes
.OfType<ReloadAttribute>().Any() && ChangeToken.TokenSource.IsCancellationRequested)
ApplicationModelWebSite (1)
Conventions\CloneActionConvention.cs (1)
15
var actionName = action.
Attributes
.OfType<CloneActionAttribute>()?.FirstOrDefault()?.ActionName;
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\ActionModel.cs (1)
59
Attributes = new List<object>(other.
Attributes
);
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
79
action.
Attributes
.OfType<ProducesErrorResponseTypeAttribute>().FirstOrDefault() ??
ApplicationModels\ApplicationModelConventions.cs (1)
54
action.
Attributes
ApplicationModels\AuthorizationApplicationModelProvider.cs (2)
56
var actionModelAuthData = actionModel.
Attributes
.OfType<IAuthorizeData>().ToArray();
62
foreach (var _ in actionModel.
Attributes
.OfType<IAllowAnonymous>())
Microsoft.AspNetCore.Mvc.Cors (2)
CorsApplicationModelProvider.cs (2)
63
enableCors = actionModel.
Attributes
.OfType<IEnableCorsAttribute>().FirstOrDefault();
69
disableCors = actionModel.
Attributes
.OfType<IDisableCorsAttribute>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
AuthorizeFilterIntegrationTest.cs (4)
37
var authorizeData = action.
Attributes
.OfType<AuthorizeAttribute>();
65
var authorizeData = action.
Attributes
.OfType<AuthorizeAttribute>();
96
var authorizeData = action.
Attributes
.OfType<AuthorizeAttribute>();
132
var authorizeData = action.
Attributes
.OfType<AuthorizeAttribute>();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryApplicationModelProvider.cs (1)
39
if (HasValidAntiforgeryMetadata(actionModel.
Attributes
, actionModel.Filters) && !controllerFilterAdded)