3 interfaces inheriting from IMetadataDetailsProvider
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Metadata\IBindingMetadataProvider.cs (1)
11public interface IBindingMetadataProvider : IMetadataDetailsProvider
ModelBinding\Metadata\IDisplayMetadataProvider.cs (1)
11public interface IDisplayMetadataProvider : IMetadataDetailsProvider
ModelBinding\Metadata\IValidationMetadataProvider.cs (1)
11public interface IValidationMetadataProvider : IMetadataDetailsProvider
2 implementations of IMetadataDetailsProvider
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Metadata\MetadataDetailsProviderExtensionsTest.cs (2)
46private class FooMetadataDetailsProvider : IMetadataDetailsProvider 50private class BarMetadataDetailsProvider : IMetadataDetailsProvider
33 references to IMetadataDetailsProvider
Microsoft.AspNetCore.Mvc.Core (16)
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
107internal static void ConfigureAdditionalModelMetadataDetailsProviders(IList<IMetadataDetailsProvider> modelMetadataDetailsProviders)
ModelBinding\EmptyModelMetadataProvider.cs (1)
21new DefaultCompositeMetadataDetailsProvider(new List<IMetadataDetailsProvider>()),
ModelBinding\Metadata\DefaultCompositeMetadataDetailsProvider.cs (3)
17private readonly IEnumerable<IMetadataDetailsProvider> _providers; 22/// <param name="providers">The set of <see cref="IMetadataDetailsProvider"/> instances.</param> 23public DefaultCompositeMetadataDetailsProvider(IEnumerable<IMetadataDetailsProvider> providers)
ModelBinding\Metadata\ICompositeMetadataDetailsProvider.cs (1)
9/// A composite <see cref="IMetadataDetailsProvider"/>.
ModelBinding\Metadata\MetadataDetailsProviderExtensions.cs (7)
9/// Extension methods for <see cref="IMetadataDetailsProvider"/>. 16/// <param name="list">The list of <see cref="IMetadataDetailsProvider"/>s.</param> 18public static void RemoveType<TMetadataDetailsProvider>(this IList<IMetadataDetailsProvider> list) where TMetadataDetailsProvider : IMetadataDetailsProvider 28/// <param name="list">The list of <see cref="IMetadataDetailsProvider"/>s.</param> 30public static void RemoveType(this IList<IMetadataDetailsProvider> list, Type type) 37var metadataDetailsProvider = list[i];
MvcOptions.cs (3)
48ModelMetadataDetailsProviders = new List<IMetadataDetailsProvider>(); 175/// Gets a list of <see cref="IMetadataDetailsProvider"/> instances that will be used to 187public IList<IMetadataDetailsProvider> ModelMetadataDetailsProviders { get; }
Microsoft.AspNetCore.Mvc.Core.Test (9)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (2)
21Enumerable.Empty<IMetadataDetailsProvider>()); 81Enumerable.Empty<IMetadataDetailsProvider>());
ModelBinding\Metadata\EmptyCompositeMetadataDetailsProvider.cs (1)
9: base(new IMetadataDetailsProvider[0])
ModelBinding\Metadata\MetadataDetailsProviderExtensionsTest.cs (4)
12var list = new List<IMetadataDetailsProvider> 23var provider = Assert.Single(list); 31var list = new List<IMetadataDetailsProvider> 42var provider = Assert.Single(list);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
63var metadata = TestModelMetadataProvider.CreateDefaultProvider(new List<IMetadataDetailsProvider> { new TestValidationModelNameProvider() }).GetMetadataForType(typeof(Person));
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1474private DefaultObjectValidator CreateValidator(params IMetadataDetailsProvider[] providers)
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
TestModelMetadataProvider.cs (6)
27var detailsProviders = new List<IMetadataDetailsProvider> 44public static IModelMetadataProvider CreateDefaultProvider(IList<IMetadataDetailsProvider> providers) 46var detailsProviders = new List<IMetadataDetailsProvider>() 68public static IModelMetadataProvider CreateProvider(IList<IMetadataDetailsProvider> providers) 70var detailsProviders = new List<IMetadataDetailsProvider>(); 89new DefaultCompositeMetadataDetailsProvider(new IMetadataDetailsProvider[]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
1046new DefaultCompositeMetadataDetailsProvider(new IMetadataDetailsProvider[]
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
FormatWeekHelperTest.cs (1)
23Enumerable.Empty<IMetadataDetailsProvider>());