I am working on a side-project involving a small self-hosted Nancy server for the local network to remotely control a media player. To enable support for multiple players I implemented a simple plugin mechanism like it was outlined here: http://code.msdn.microsoft.com/windowsdesktop/Creating-a-simple-plugin-b6174b62
The dynamic loading and execution works great, but the problem I am running into is how to tell TinyIoC which plugin implementation to use. At the moment I have a subdirectory named plugins where the .dlls are stored and at startup TinyIoC discovers the one test dll in this directory and wires up the dependency without me choosing anything explicitly.
I found the method Bootstrapper.ConfigureApplicationContainer to be the place to do DI configuration but since I want to use a dynamic system and do not have the server project a reference to all plugin assemblies that is not sufficient in my case.
Is this even possible with TinyIoC or do I need to look for another IoC container?
Thanks a lot in advance