I’m trying to instantiate all subclasses of one class using structuremap.
How would I do this, and how would I control their lifecylce?
I have a base type which other developers inherit to build their classes. At one point I wish to instantiate all of those subclasses and call methods on them.
You can do batch registration like this:
And you can resolve all registered types as follows: