Skip to content

Commit 14563c8

Browse files
committed
Added missing DataLoader DI dependency
1 parent a5d4578 commit 14563c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GreenDonut/src/Core/DependencyInjection/DataLoaderServiceCollectionExtension.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public static IServiceCollection AddDataLoader<T>(
5050
public static IServiceCollection TryAddDataLoaderCore(
5151
this IServiceCollection services)
5252
{
53+
services.TryAddSingleton<ObjectPoolProvider, DefaultObjectPoolProvider>();
54+
5355
services.AddSingleton<DataLoaderScopeFactory>();
5456
services.TryAddScoped<IDataLoaderScope>(sp => sp.GetRequiredService<DataLoaderScopeFactory>().CreateScope(sp));
5557
services.TryAddScoped<IBatchScheduler, AutoBatchScheduler>();

0 commit comments

Comments
 (0)