4 references to GetAttributes
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (1)
19=> GetAttributes(methodSymbol, attribute, inherit).Any();
SymbolApiResponseMetadataProvider.cs (3)
85var attribute = method.GetAttributes(symbolCache.ApiConventionMethodAttribute, inherit: true) 143var responseMetadataAttributes = methodSymbol.GetAttributes(symbolCache.ProducesResponseTypeAttribute, inherit: true); 152var producesDefaultResponse = methodSymbol.GetAttributes(symbolCache.ProducesDefaultResponseTypeAttribute, inherit: true).FirstOrDefault();