public override async Task StartupAsync(ApplicationInstance instance) { using (var scope = await instance.CreateScopeAsync()) { var dataset = scope.Scope.ServiceProvider.GetRequiredService <TDataset>(); await dataset.InstallAsync(); } }