Async application initialization in asp.net core and .net core apps
Author: sleemerCreated Jan 11, 2019Updated Nov 12, 2021
Hi, what's currently the recommended way to run async application initialization in asp.net core and .net core apps based on IGenericHost? Wouldn't it be a nice idea to integrate async initialization into WebHost and GenericHost themselves? As an example we could use https://github.com/thomaslevesque/AspNetCore.AsyncInitialization/ What I am trying to achieve with that is:
- to get access to DI container in async initializer
- to run initialization logic (bootstrapping) before executing the Host itself
Source: davidfowl/AspNetCoreDiagnosticScenarios