1 interface inheriting from IApiResponseMetadataProvider
Microsoft.AspNetCore.Mvc.Core (1)
ApiExplorer\IApiDefaultResponseMetadataProvider.cs (1)
9public interface IApiDefaultResponseMetadataProvider : IApiResponseMetadataProvider
4 implementations of IApiResponseMetadataProvider
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2864IApiResponseMetadataProvider,
Microsoft.AspNetCore.Mvc.Core (2)
ProducesAttribute.cs (1)
19public class ProducesAttribute : Attribute, IResultFilter, IOrderedFilter, IApiResponseMetadataProvider
ProducesResponseTypeAttribute.cs (1)
15public class ProducesResponseTypeAttribute : Attribute, IApiResponseMetadataProvider
Mvc.Api.Analyzers.Test (1)
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (1)
57public class CustomResponseTypeAttribute : Attribute, IApiResponseMetadataProvider
31 references to IApiResponseMetadataProvider
Microsoft.AspNetCore.Mvc.ApiExplorer (9)
ApiResponseTypeProvider.cs (8)
58private static List<IApiResponseMetadataProvider> GetResponseMetadataAttributes(ControllerActionDescriptor action) 62return new List<IApiResponseMetadataProvider>(); 71.OfType<IApiResponseMetadataProvider>() 76IReadOnlyList<IApiResponseMetadataProvider> responseMetadataAttributes, 136IReadOnlyList<IApiResponseMetadataProvider> responseMetadataAttributes, 152foreach (var metadataAttribute in responseMetadataAttributes) 400private static bool HasSignificantMetadataProvider(IReadOnlyList<IApiResponseMetadataProvider> providers) 404var provider = providers[i];
EndpointMetadataApiDescriptionProvider.cs (1)
329var responseProviderMetadata = endpointMetadata.GetOrderedMetadata<IApiResponseMetadataProvider>();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (10)
ApiResponseTypeProviderTest.cs (10)
235actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 291actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 332actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 385actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 427actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 478actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 524actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 571actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 621actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 653actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
Microsoft.AspNetCore.Mvc.Core (10)
ApiExplorer\ApiConventionResult.cs (5)
18/// <param name="responseMetadataProviders">The sequence of <see cref="IApiResponseMetadataProvider"/> that are associated with the action.</param> 19public ApiConventionResult(IReadOnlyList<IApiResponseMetadataProvider> responseMetadataProviders) 26/// Gets the sequence of <see cref="IApiResponseMetadataProvider"/> that are associated with the action. 28public IReadOnlyList<IApiResponseMetadataProvider> ResponseMetadataProviders { get; } 45.OfType<IApiResponseMetadataProvider>()
ApiExplorer\IApiDefaultResponseMetadataProvider.cs (1)
7/// Provides a return type for all HTTP status codes that are not covered by other <see cref="IApiResponseMetadataProvider"/> instances.
Formatters\FormatFilter.cs (2)
83var responseTypeFilters = context.Filters.OfType<IApiResponseMetadataProvider>(); 85foreach (var filter in responseTypeFilters)
ProducesDefaultResponseTypeAttribute.cs (1)
48void IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection contentTypes)
ProducesResponseTypeAttribute.cs (1)
96void IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection contentTypes)
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiGenerator.cs (2)
115var responseProviderMetadata = metadata.GetOrderedMetadata<IApiResponseMetadataProvider>(); 151foreach (var providerMetadata in responseProviderMetadata)