Composition-time checks

Apr 16, 2009 at 3:15 AM
I want to perform some kind of checks during the composition time. 
Some examples:
1. I want to check that Catalog has only on Export of some service (IFileSystem for example).
2. I have service interface IOperation{ string Name{ get; }} and I want to check, that all exported operations has unique names.

So, which solution is supposed to be the best for that purpose?

I can create a wrapping catalog checking all I need in the constructor. Is it the best way? Are there some other solutions?