Refactor IPdfPageImageRenderer registration
Encapsulated the registration of IPdfPageImageRenderer into a new AddDocInfrastructure extension method in the DependencyInjection class within the EnvelopeGenerator.Infrastructure.Doc namespace. Updated Program.cs to use the AddDocInfrastructure method, improving modularity and centralizing the service registration logic.
This commit is contained in:
@@ -353,7 +353,7 @@ try
|
||||
builder.Services.AddScoped<EnvelopeReceiverService>();
|
||||
builder.Services.AddScoped<SignatureService>();
|
||||
builder.Services.AddScoped<SignatureCacheService>();
|
||||
builder.Services.AddScoped<IPdfPageImageRenderer, PdfPageImageRenderer>();
|
||||
builder.Services.AddDocInfrastructure();
|
||||
builder.Services.AddScoped<EnvelopeGenerator.Application.Common.Interfaces.Services.IEnvelopeMailService, EnvelopeGenerator.Application.Services.EnvelopeMailService>();
|
||||
builder.Services.AddSingleton<AppVersionService>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user