Dependency Injection in a VAB Custom Validator with Unity

Topics: Validation Application Block
May 14, 2010 at 2:00 PM
Hi, I have successfully implemented a custom validator using Enterprise Library 5/VAB. Now I would like to inject some properties to this validator via unity. So far I have not found a solution to this. Any ideas? Jürg
May 18, 2010 at 3:27 AM

I'm trying to do this by configuring a container using EnterpriseLibraryContainer.ConfigureContainer and override the registration for my custom validator but I've no idea what registration to override.

Looking at the source code, it seems like the way to do this is to subclass from the ValidatorData class and override the DoCreateValidator method.