Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: MustAsync does not work...

$
0
0
Yes, you could definitely put the rules in a separate method - you could either call this manually before invoking Validate, or override AbstractValidator.Validate and put the call to BuildRules in there.

As far as I can see, there isn't any code in the codebase that calls the async rules directly - they're just created as rules in the normal way can can be invoked by calling ValidateAsync.

Jeremy

Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>