With Unity one can do something like this:
.RegisterType<IControllerFactory, MyControllerFactory>(
new InjectionConstructor("connectionstring goes here"));
Is it possible to do the same in ASP.NET Core?
UPD: I have controllers in a separate assembly where I would like to keep my presentation model that's why I'm substituting the controller factory. It needs to create different stuff in order to create controllers and this requires connection string.