13 references to AsyncValidationAttribute
System.ComponentModel.Annotations (13)
System\ComponentModel\DataAnnotations\AsyncValidationAttribute.cs (1)
114
/// <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)
359
/// Any <see cref="
AsyncValidationAttribute
" /> instances are evaluated asynchronously after all synchronous
532
/// Any <see cref="
AsyncValidationAttribute
" /> instances are evaluated asynchronously after all synchronous
916
List<
AsyncValidationAttribute
>? asyncAttributes = null;
940
if (attr is
AsyncValidationAttribute
asyncAttr)
942
(asyncAttributes ??= new List<
AsyncValidationAttribute
>()).Add(asyncAttr);
964
var tasks = new List<Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)>>(asyncAttributes.Count);
967
foreach (
AsyncValidationAttribute
asyncAttr in asyncAttributes)
974
Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> completed =
978
(
AsyncValidationAttribute
attr, ValidationResult? result) completedResult;
1020
private static async Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> RunAsyncValidation(
1021
AsyncValidationAttribute
attr,