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)
339/// Any <see cref="AsyncValidationAttribute" /> instances will be evaluated asynchronously after all synchronous 489/// Any <see cref="AsyncValidationAttribute" /> instances will be evaluated asynchronously after all synchronous 837List<AsyncValidationAttribute>? asyncAttributes = null; 861if (attr is AsyncValidationAttribute asyncAttr) 863(asyncAttributes ??= new List<AsyncValidationAttribute>()).Add(asyncAttr); 885var tasks = new List<Task<(AsyncValidationAttribute Attr, ValidationResult? Result)>>(asyncAttributes.Count); 888foreach (AsyncValidationAttribute asyncAttr in asyncAttributes) 895Task<(AsyncValidationAttribute Attr, ValidationResult? Result)> completed = 899(AsyncValidationAttribute attr, ValidationResult? result) completedResult; 941private static async Task<(AsyncValidationAttribute Attr, ValidationResult? Result)> RunAsyncValidation( 942AsyncValidationAttribute attr,