public static IWebHost MigrationAndSeedDataDB(this IWebHost webHost) { Task.WaitAll( webHost.MigrateDbContextAsync <IDS4DbContext>(EnsureSeedIDS4DataAsync), webHost.MigrateDbContextAsync <AppIdentityDbContext>(EnsureSeedIdentityDataAsync) ); webHost.MigrateDbContext <EventStoreContext>(null); return(webHost); }