1 type derived from ValidationVisitor
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ValidationIntegrationTests.cs (1)
2592private class RecordingValidationVisitor : ValidationVisitor
1 instantiation of ValidationVisitor
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\DefaultObjectValidator.cs (1)
39var visitor = new ValidationVisitor(
19 references to ValidationVisitor
Microsoft.AspNetCore.Mvc.Core (18)
ModelBinding\ObjectModelValidator.cs (5)
44var visitor = GetValidationVisitor( 96var visitor = GetValidationVisitor( 107/// Gets a <see cref="ValidationVisitor"/> that traverses the object model graph and performs validation. 114/// <returns>A <see cref="ValidationVisitor"/> which traverses the object model graph.</returns> 115public abstract ValidationVisitor GetValidationVisitor(
ModelBinding\Validation\DefaultObjectValidator.cs (2)
32public override ValidationVisitor GetValidationVisitor( 39var visitor = new ValidationVisitor(
ModelBinding\Validation\ValidationVisitor.cs (8)
23/// Creates a new <see cref="ValidationVisitor"/>. 110/// <see cref="ValidationVisitor"/> traverses the object graph of the model being validated. For models 302message = Resources.FormatValidationVisitor_ExceededMaxPropertyDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.Name, metadata.ContainerType); 307message = Resources.FormatValidationVisitor_ExceededMaxDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.ModelType); 490/// State manager used for by <see cref="ValidationVisitor"/>. 494private readonly ValidationVisitor _visitor; 511ValidationVisitor visitor, 533public StateManager(ValidationVisitor visitor, object? newModel)
MvcOptions.cs (3)
232/// <see cref="ValidationVisitor"/> traverses the object graph of the model being validated. For models 236/// When not <see langword="null"/>, <see cref="ValidationVisitor"/> will throw if 260/// <seealso cref="ValidationVisitor.ValidateComplexTypesIfChildValidationFails"/>
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ValidationIntegrationTests.cs (1)
2585public override ValidationVisitor GetValidationVisitor(ActionContext actionContext, IModelValidatorProvider validatorProvider, ValidatorCache validatorCache, IModelMetadataProvider metadataProvider, ValidationStateDictionary validationState)