3 references to TryValidateObjectAsync
Microsoft.Extensions.Options.DataAnnotations (1)
DataAnnotationValidateOptions.Async.cs (1)
100
bool res = await Validator.
TryValidateObjectAsync
(options, new ValidationContext(options), results, validateAllProperties: true, cancellationToken).ConfigureAwait(false);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\Validator.cs (2)
386
/// <see cref="
TryValidateObjectAsync
(object, ValidationContext, ICollection{ValidationResult}?, bool, CancellationToken)" />
405
TryValidateObjectAsync
(instance, validationContext, validationResults, validateAllProperties: false, cancellationToken);