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
837
List<
AsyncValidationAttribute
>? asyncAttributes = null;
861
if (attr is
AsyncValidationAttribute
asyncAttr)
863
(asyncAttributes ??= new List<
AsyncValidationAttribute
>()).Add(asyncAttr);
885
var tasks = new List<Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)>>(asyncAttributes.Count);
888
foreach (
AsyncValidationAttribute
asyncAttr in asyncAttributes)
895
Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> completed =
899
(
AsyncValidationAttribute
attr, ValidationResult? result) completedResult;
941
private static async Task<(
AsyncValidationAttribute
Attr, ValidationResult? Result)> RunAsyncValidation(
942
AsyncValidationAttribute
attr,