How to Inject Dependencies to Dynamically Loaded Assemblies
问题 I have a manager class that loads various plug-in modules contained in separate assemblies through reflection. This modules are communication to the outside world (WebAPI, various other web protocols). public class Manager { public ILogger Logger; // Modules need to access this. private void LoadAssemblies() { // Load assemblies through reflection. } } These plug-in modules must communicate with an object contained within the manager class. How can I implement this? I thought about using