lab-7 it does not work

This commit is contained in:
Zakharov_Rostislav 2024-05-08 16:01:42 +04:00
parent e77be06f60
commit 2dd7c33347

View File

@ -31,8 +31,7 @@ namespace BlacksmithWorkshop
_serviceProvider = services.BuildServiceProvider();
try
{
var mailSender =
_serviceProvider.GetService<AbstractMailWorker>();
var mailSender = _serviceProvider.GetService<AbstractMailWorker>();
mailSender?.MailConfig(new MailConfigBindingModel
{
MailLogin = System.Configuration.ConfigurationManager.AppSettings["MailLogin"]