refactor(di): unify Application and Infrastructure DI registrations under a central method

- Added central AddEnvelopeGenerator extension to aggregate existing DI setups
- Introduced EGConfiguration for modular service registration
- Standardized configuration pattern for Application and Infrastructure layers
- Simplified distributed cache and localization registration
This commit is contained in:
2025-11-03 08:44:22 +01:00
parent 209785dda5
commit 22b494a262
11 changed files with 82 additions and 20 deletions

View File

@@ -185,7 +185,7 @@ try
// Envelope generator serives
#pragma warning disable CS0618 // Type or member is obsolete
builder.Services
.AddEnvelopeGeneratorInfrastructureServices(opt =>
.AddEGInfrastructureServices(opt =>
{
opt.AddDbTriggerParams(config);
opt.AddDbContext((provider, options) =>