My services are runtime generated.I need to generate controllers from generated services. PreInitialize method is working during first host run. I need it to be called from my method during runtime. How can I organize it?
AspNet Core investigates controllers on application startup. So, you can not add controller after application startup as I know.