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