Skip to content

Commit 6654043

Browse files
committed
Fix: AsyncServiceScope
1 parent 9e7d0f2 commit 6654043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeOfChaos.Types.DataSeeder/OneTimeDataSeederService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task StartAsync(CancellationToken ct = default) {
7070
}
7171

7272
// Each group should have their own scope
73-
using IServiceScope scope = serviceProvider.CreateScope();
73+
await using AsyncServiceScope scope = serviceProvider.CreateAsyncScope();
7474
IServiceProvider scopeProvider = scope.ServiceProvider;
7575
List<ISeeder> seeders = [];
7676

0 commit comments

Comments
 (0)