1 implementation of IApiBehaviorMetadata
Microsoft.AspNetCore.Mvc.Core (1)
ApiControllerAttribute.cs (1)
20
public class ApiControllerAttribute : ControllerAttribute,
IApiBehaviorMetadata
5 references to IApiBehaviorMetadata
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (2)
119
if (controller.Attributes.OfType<
IApiBehaviorMetadata
>().Any())
126
return assemblyAttributes.OfType<
IApiBehaviorMetadata
>().Any();
Infrastructure\DefaultApiProblemDetailsWriter.cs (3)
45
var
apiControllerAttribute = context.AdditionalMetadata?.GetMetadata<
IApiBehaviorMetadata
>() ??
46
context.HttpContext.GetEndpoint()?.Metadata.GetMetadata<
IApiBehaviorMetadata
>();