13 references to AsyncValidationAttribute
System.ComponentModel.Annotations (13)
System\ComponentModel\DataAnnotations\AsyncValidationAttribute.cs (1)
79
/// <see cref="ValidationContext" /> overload so that <see cref="
AsyncValidationAttribute
" /> implementations
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (1)
142
/// <see cref="
AsyncValidationAttribute
.GetValidationResultAsync(object?, ValidationContext, System.Threading.CancellationToken)" />
System\ComponentModel\DataAnnotations\Validator.cs (11)
339
/// Any <see cref="
AsyncValidationAttribute
" /> instances will be evaluated asynchronously after all synchronous
481
/// Any <see cref="
AsyncValidationAttribute
" /> instances will be evaluated asynchronously after all synchronous
819
List<
AsyncValidationAttribute
>? asyncAttributes = null;
843
if (attr is
AsyncValidationAttribute
asyncAttr)
845
(asyncAttributes ??= new List<
AsyncValidationAttribute
>()).Add(asyncAttr);
867
var tasks = new List<Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)>>(asyncAttributes.Count);
868
foreach (
AsyncValidationAttribute
asyncAttr in asyncAttributes)
877
Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> completed =
881
(
AsyncValidationAttribute
attr, ValidationResult? result) completedResult;
923
private static async Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> RunAsyncValidation(
924
AsyncValidationAttribute
attr,