I have ASP MVC Core application.
After application started i've generate dynamic assembly with some controllers. The problem is that RouteMiddleware does not process requests to generated controllers.
The problem is solved if i call
services.AddMvc()
.AddApplicationPart(...)
and pass generated assembly to ApplicationPartManager in Startup.ConfigureServices method, but i need to generate Assembly after application started.