синглетон!
This commit is contained in:
parent
81acf860dd
commit
cf486ae9cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user