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

New Post: Dependency Injection Help

$
0
0

The best way to approach this is to use an IoC container to automatically instantiate both the validator and its dependency.

If you then create a custom validator factory impelementation that uses your IoC container, then you can still make use of MVC's automatic validation integration.

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>