ISEbd-21 Melnikov I. O. Lab Work 07 Base #24

Closed
Igor-Melnikov wants to merge 7 commits from lab7 into lab6
Showing only changes of commit cfeaf8ec10 - Show all commits

View File

@ -29,7 +29,7 @@ builder.Services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
builder.Services.AddSingleton<AbstractMailWorker, MailKitWorker>();
builder.Configuration.AddJsonFile("appsettings.json");
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
@ -41,6 +41,8 @@ builder.Services.AddSwaggerGen(c =>
var app = builder.Build();
var MailLogin = builder.Configuration.GetSection("MailLogin").Value;
var mailSender = app.Services.GetService<AbstractMailWorker>();
mailSender?.MailConfig(new MailConfigBindingModel
{