Asynchronous initialization in ASP.NET Core, revisited

added by DotNetKicks
9/25/2018 9:49:23 PM

2 Kicks, 291 Views

Initialization in ASP.NET Core is a bit awkward. There are well defined places for registering services (the Startup.ConfigureServices method) and for building the middleware pipeline (the Startup.Configure method), but not for performing other initialization steps (e.g. pre-loading data, seeding a database, etc.).