Exemplo n.º 1
0
 async Task<IValidationResult> IValidator<T>.ValidateAsync(T instance)
 {
     ValidationResult result = await this.ValidateAsync(instance);
     return result;
 }
Exemplo n.º 2
0
 private async Task ValidateAndThrowInternalAsync(object instance)
 {
     ValidationResult result = await this.ValidateAsync((T)instance);
     if (!result.IsValid)
         throw new Validation<T>(result.Errors).AsException();
 }
Exemplo n.º 3
0
 async Task<IValidationResult> IValidator.ValidateAsync(object instance)
 {
     ValidationResult result = await this.ValidateAsync((T)instance);
     return result;
 }