10 references to GetAttributes
Microsoft.AspNetCore.Mvc.Api.Analyzers (10)
ActualApiResponseMetadataFactory.cs (1)
96
.
GetAttributes
(defaultStatusCodeAttributeSymbol)
AddResponseTypeAttributeCodeFixAction.cs (1)
95
var apiConventionMethodAttribute = context.Method.
GetAttributes
(context.SymbolCache.ApiConventionMethodAttribute).FirstOrDefault();
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
40
foreach (var attributeData in
GetAttributes
(current, attribute))
61
foreach (var attributeData in
GetAttributes
(type, attribute))
SymbolApiConventionMatcher.cs (2)
63
var attribute = symbol.
GetAttributes
(symbolCache.ApiConventionNameMatchAttribute).FirstOrDefault();
85
var attribute = symbol.
GetAttributes
(symbolCache.ApiConventionTypeMatchAttribute).FirstOrDefault();
SymbolApiResponseMetadataProvider.cs (4)
48
method.
GetAttributes
(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault() ??
49
method.ContainingType.
GetAttributes
(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault() ??
50
method.ContainingAssembly.
GetAttributes
(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault();
166
attributes = method.ContainingAssembly.
GetAttributes
(symbolCache.ApiConventionTypeAttribute).ToArray();