Search code examples
asp.net-coreaspnetboilerplate

How to call preInitialize method after host run?


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?


Solution

  • AspNet Core investigates controllers on application startup. So, you can not add controller after application startup as I know.