feat: register IUnitOfWork with AdsManagerServiceContext
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user