BrandGhost
Avoid This Plugin Mistake: Reflection & Dependency Injection in C#

Avoid This Plugin Mistake: Reflection & Dependency Injection in C#

When it comes to plugins and building a C# application with a plugin architecture, it's common for reflection to intersect with dependency injection. We often have to do things like scan for assemblies, filter the plugin types that we need to use, or create instances of things to have them available. However, one common challenge is when C# developers try to mix in Activator.CreateInstance alongside the dependency injection frameworks. In this video, I explain where some of that challenge comes from and how to work around it.
An error has occurred. This application may no longer respond until reloaded. Reload