синглетон!

This commit is contained in:
a.puchkina 2024-05-29 12:53:16 +04:00
parent 81acf860dd
commit cf486ae9cf

View File

@ -46,7 +46,7 @@ builder.Services.AddTransient<AbstractSaveToWordVisitsLawyer, SaveToWordVisitsLa
builder.Services.AddTransient<AbstractSaveToPdfConsultationHearing, SaveToPdfConsultationHearing>();
builder.Services.AddTransient<AbstractSaveToPdfCaseHearing, SaveToPdfCaseHearing>();
builder.Services.AddTransient<AbstractSaveToPdfClients, SaveToPdfClients>();
builder.Services.AddTransient<AbstractMailWorker, MailKitWorker>();
builder.Services.AddSingleton<AbstractMailWorker, MailKitWorker>();
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle