1 instantiation of ProducesErrorResponseTypeAttribute
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
44var defaultErrorTypeAttribute = new ProducesErrorResponseTypeAttribute(defaultErrorType);
15 references to ProducesErrorResponseTypeAttribute
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (2)
55if (action.Properties.TryGetValue(typeof(ProducesErrorResponseTypeAttribute), out result)) 57defaultErrorType = ((ProducesErrorResponseTypeAttribute)result!).Type;
EndpointMetadataApiDescriptionProvider.cs (2)
332var errorMetadata = endpointMetadata.GetMetadata<ProducesErrorResponseTypeAttribute>();
Microsoft.AspNetCore.Mvc.Core (11)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
44var defaultErrorTypeAttribute = new ProducesErrorResponseTypeAttribute(defaultErrorType);
ApplicationModels\ApiConventionApplicationModelConvention.cs (9)
14/// <item><description><see cref="ProducesErrorResponseTypeAttribute"/> that applies to the action.</description></item> 25public ApiConventionApplicationModelConvention(ProducesErrorResponseTypeAttribute defaultErrorResponseType) 31/// Gets the default <see cref="ProducesErrorResponseTypeAttribute"/> that is associated with an action 34public ProducesErrorResponseTypeAttribute DefaultErrorResponseType { get; } 78var errorTypeAttribute = 79action.Attributes.OfType<ProducesErrorResponseTypeAttribute>().FirstOrDefault() ?? 80action.Controller.Attributes.OfType<ProducesErrorResponseTypeAttribute>().FirstOrDefault() ?? 81action.Controller.ControllerType.Assembly.GetCustomAttribute<ProducesErrorResponseTypeAttribute>() ?? 84action.Properties[typeof(ProducesErrorResponseTypeAttribute)] = errorTypeAttribute;
ProducesErrorResponseTypeAttribute.cs (1)
22/// Initializes a new instance of <see cref="ProducesErrorResponseTypeAttribute"/>.