mirror of https://github.com/abpframework/abp.git
committed by
GitHub
11 changed files with 65 additions and 38 deletions
@ -1,7 +1,9 @@ |
|||||
namespace Volo.Abp.Validation |
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Volo.Abp.Validation |
||||
{ |
{ |
||||
public interface IMethodInvocationValidator |
public interface IMethodInvocationValidator |
||||
{ |
{ |
||||
void Validate(MethodInvocationValidationContext context); |
Task ValidateAsync(MethodInvocationValidationContext context); |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,9 @@ |
|||||
namespace Volo.Abp.Validation |
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Volo.Abp.Validation |
||||
{ |
{ |
||||
public interface IObjectValidationContributor |
public interface IObjectValidationContributor |
||||
{ |
{ |
||||
void AddErrors(ObjectValidationContext context); |
Task AddErrorsAsync(ObjectValidationContext context); |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,20 +1,21 @@ |
|||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
namespace Volo.Abp.Validation |
namespace Volo.Abp.Validation |
||||
{ |
{ |
||||
public interface IObjectValidator |
public interface IObjectValidator |
||||
{ |
{ |
||||
void Validate( |
Task ValidateAsync( |
||||
object validatingObject, |
object validatingObject, |
||||
string name = null, |
string name = null, |
||||
bool allowNull = false |
bool allowNull = false |
||||
); |
); |
||||
|
|
||||
List<ValidationResult> GetErrors( |
Task<List<ValidationResult>> GetErrorsAsync( |
||||
object validatingObject, |
object validatingObject, |
||||
string name = null, |
string name = null, |
||||
bool allowNull = false |
bool allowNull = false |
||||
); |
); |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue