1 type derived from ValidationVisitor
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ValidationIntegrationTests.cs (1)
2592
private class RecordingValidationVisitor :
ValidationVisitor
1 instantiation of ValidationVisitor
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\DefaultObjectValidator.cs (1)
39
var visitor = new
ValidationVisitor
(
19 references to ValidationVisitor
Microsoft.AspNetCore.Mvc.Core (18)
ModelBinding\ObjectModelValidator.cs (5)
44
var
visitor = GetValidationVisitor(
96
var
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>
115
public abstract
ValidationVisitor
GetValidationVisitor(
ModelBinding\Validation\DefaultObjectValidator.cs (2)
32
public override
ValidationVisitor
GetValidationVisitor(
39
var
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
302
message = Resources.FormatValidationVisitor_ExceededMaxPropertyDepth(nameof(
ValidationVisitor
), MaxValidationDepth, metadata.Name, metadata.ContainerType);
307
message = Resources.FormatValidationVisitor_ExceededMaxDepth(nameof(
ValidationVisitor
), MaxValidationDepth, metadata.ModelType);
490
/// State manager used for by <see cref="
ValidationVisitor
"/>.
494
private readonly
ValidationVisitor
_visitor;
511
ValidationVisitor
visitor,
533
public 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)
2585
public override
ValidationVisitor
GetValidationVisitor(ActionContext actionContext, IModelValidatorProvider validatorProvider, ValidatorCache validatorCache, IModelMetadataProvider metadataProvider, ValidationStateDictionary validationState)