refactor(DIExtensions): update to scan EmailProfilerDispatcher
This commit is contained in:
parent
83460bd92b
commit
27a2d5ecc4
@ -12,6 +12,7 @@ using System.Reflection;
|
||||
using DigitalData.UserManager.Domain.Entities;
|
||||
using EnvelopeGenerator.Application.Common.Interfaces.Repositories;
|
||||
using EnvelopeGenerator.Application.Common.Interfaces.SQLExecutor;
|
||||
using DigitalData.EmailProfilerDispatcher.Abstraction.Entities;
|
||||
|
||||
namespace EnvelopeGenerator.Infrastructure;
|
||||
|
||||
@ -55,8 +56,14 @@ public static class DIExtensions
|
||||
|
||||
services.AddDbRepository(opt =>
|
||||
{
|
||||
// scan EnvelopeGenerator
|
||||
opt.RegisterFromAssembly<EGDbContext>(typeof(Config).Assembly);
|
||||
|
||||
// scan UserManager
|
||||
opt.RegisterFromAssembly<EGDbContext>(typeof(User).Assembly);
|
||||
|
||||
// scan EmailProfilerDispatcher
|
||||
opt.RegisterFromAssembly<EGDbContext>(typeof(EmailOut).Assembly);
|
||||
});
|
||||
|
||||
services.AddSQLExecutor<Envelope>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user