ModelValidator asycn support

Mar 6, 2014 at 10:17 PM
I was looking for async support to model validation trough ModelValidator class, but ModelValidator does not have a ValidateAsync method so I would like to know how can I achieve this.

Async validation support would make sense in certain scenarios where you have to hit some network resources to perform a validation (e.g a query on a db).

NB, I'm not asking how to perform a simple validation, but rather I would like to know how could I (if possible) call an async method to validate my model before calling the controller action.

I know it might be uncommon, but in certain scenarios it might be helpful.

Thans, Massimiliano