I got a class hierarchy with about 30 classes which is four levels deep.
For instance:
- Class1
- Class1a
- Class1ac
- Class1b
- Class1a
- Class2
To that I got an interface called IConsumerOf<T>.
How can I get implementors of IConsumerOf<Class1> to also be invoked by all classes that inherit Class1? (without implementing IConsumerOf<Class1a> etc)
Edit: Adding a type constraint for the interface is not an option. And do note the Autofac tag.
Enables this behaviour :). Cheers!