1 write to ModelValidatorProviders
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
49ModelValidatorProviders = new List<IModelValidatorProvider>();
7 references to ModelValidatorProviders
Microsoft.AspNetCore.Mvc.Core (4)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
219return new DefaultObjectValidator(metadataProvider, options.ModelValidatorProviders, options);
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
95options.ModelValidatorProviders.Add(new DefaultModelValidatorProvider()); 104options.ModelMetadataDetailsProviders.Add(new HasValidatorsValidationMetadataProvider(options.ModelValidatorProviders));
ModelBinding\Validation\IMetadataBasedModelValidatorProvider.cs (1)
16/// can be calculated if all instances in <see cref="MvcOptions.ModelValidatorProviders"/> are <see cref="IMetadataBasedModelValidatorProvider" />.
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DependencyInjection\MvcDataAnnotationsMvcOptionsSetup.cs (1)
49options.ModelValidatorProviders.Add(new DataAnnotationsModelValidatorProvider(
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
142return options.Value.ModelValidatorProviders;
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
128Assert.Collection(options.ModelValidatorProviders,