24 instantiations of SuppressChildValidationMetadataProvider
FormatterWebSite (4)
Startup.cs (2)
14options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Developer))); 15options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Supplier)));
StartupWithJsonInputFormatter.cs (2)
14options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Developer))); 15options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Supplier)));
Microsoft.AspNetCore.Mvc.Core (12)
Infrastructure\MvcCoreMvcOptionsSetup.cs (12)
123modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Type))); 124modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Delegate))); 125modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(MethodInfo))); 126modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(MemberInfo))); 127modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(ParameterInfo))); 128modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Assembly))); 129modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Uri))); 130modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(CancellationToken))); 131modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IFormFile))); 132modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IFormCollection))); 133modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IFormFileCollection))); 134modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Stream)));
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1466excludeFilters.Add(new SuppressChildValidationMetadataProvider(excludedType));
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (2)
57options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider("System.Xml.Linq.XObject")); 58options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider("System.Xml.XmlNode"));
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
HasValidatorsValidationMetadataProviderIntegrationTest.cs (1)
38mvcOptions.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IQueryable)));
ValidationIntegrationTests.cs (1)
1742options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Address)));
ValidationWithRecordIntegrationTests.cs (1)
1545options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Address)));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (2)
73options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IJsonPatchDocument))); 74options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(JToken)));
31 references to SuppressChildValidationMetadataProvider
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\SuppressChildValidationMetadataProvider.cs (2)
18/// Creates a new <see cref="SuppressChildValidationMetadataProvider"/> for the given <paramref name="type"/>. 32/// Creates a new <see cref="SuppressChildValidationMetadataProvider"/> for the given <paramref name="fullTypeName"/>.
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1463var excludeFilters = new List<SuppressChildValidationMetadataProvider>();
Microsoft.AspNetCore.Mvc.Test (28)
MvcOptionsSetupTest.cs (28)
204var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 209var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 214var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 219var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 224var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 229var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 234var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 239var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 244var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 249var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 254var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 259var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 266var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider); 271var excludeFilter = Assert.IsType<SuppressChildValidationMetadataProvider>(provider);