I want to do something like this:
- Create a number of assemblies that implement IMyInterface.
- In the web.config or app.config of my application, define which one of them to load (they may have different names)
- When the application starts, load the assembly as marked in web.config and use its implementation of IMyInterface
what is the best way of doing this? I am using Framework 3.5 at this time.
(p.s. I know I can just define a variable that contains the assembly name (e.g. key="My assembly", value="myassembly.dll" then dynamically load the assembly, just wanting to know if there is a more correct way of doing this)