feat: register IUnitOfWork with AdsManagerServiceContext

This commit is contained in:
Ho Ngoc Hai
2026-01-18 02:29:09 +07:00
parent 933eac0a31
commit 3cb8b7c6b5

View File

@@ -53,6 +53,11 @@ public static class DependencyInjection
services.AddScoped<IAdSetRepository, AdSetRepository>();
services.AddScoped<IAdRepository, AdRepository>();
// EN: Register UnitOfWork (DbContext implements IUnitOfWork)
// VI: Đăng ký UnitOfWork (DbContext implement IUnitOfWork)
services.AddScoped<AdsManagerService.Domain.SeedWork.IUnitOfWork>(sp =>
sp.GetRequiredService<AdsManagerServiceContext>());
// EN: Register idempotency services / VI: Đăng ký idempotency services
services.AddScoped<IRequestManager, RequestManager>();