Register custom controller in runtime
问题 I've some api controller that i want to register at runtime in my mvc application. The controller itself resides into Class Library project and looks like: public class CustomController : ApiController { public string Get() { return "Hello"; } } I've compile that library (gave it a name Injection.dll ), and in my mvc app try to register those controller via Unity.Mvc library container public static class UnityConfig { public static void RegisterComponents() { var container = new