| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.VALIDATORS | |
|||||
Code Reference
» Cat.Validators.Abstractions Assembly » Cat.Validators.Abstractions Namespace » ICatValidatorModelRule<TModel> Interface
ICatValidatorModelRule<TModel>.ValidateAsync(TModel, CancellationToken) Method
Runs the rule.
System.Threading.Tasks.Task<System.Collections.Generic.List<Cat.Validators.Abstractions.ICatValidatorError>> ValidateAsync(TModel model, System.Threading.CancellationToken ct);
Parameters
model TModel
The model to check.
ct System.Threading.CancellationToken
Token to cancel the work.
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ICatValidatorError>>
The failures found. The list is empty when the model is valid.