I have a plugin system that allows a user to choose the type of plugin they wish to create (basically this sets up a configuration for a plugin instance).
They choose the plugin type from a select list. I am using StructureMap to inject an IEnumerable into my MVC controller so that I can then access the FQ type name to use in the select list.
This works fine but I don't really like that I having to create an instance of all the registered plugins just to display a list of them in a select list.
So the question is, can I access the types of IPlugin that are registered with StructureMap?