Revert "temp"

This reverts commit 3c2e1713d6.
This commit is contained in:
Zakharov_Rostislav 2024-05-22 15:10:54 +04:00
parent 3c2e1713d6
commit 1ab88737b3

View File

@ -18,14 +18,12 @@ namespace BlacksmithWorkshopBusinessLogic.MailWorker
protected string _popHost = string.Empty;
protected int _popPort;
private readonly IMessageInfoLogic _messageInfoLogic;
private readonly IClientLogic _clientLogic;
private readonly ILogger _logger;
public AbstractMailWorker(ILogger<AbstractMailWorker> logger,
IMessageInfoLogic messageInfoLogic, IClientLogic clientLogic)
IMessageInfoLogic messageInfoLogic)
{
_logger = logger;
_messageInfoLogic = messageInfoLogic;
_clientLogic = clientLogic;
}
public void MailConfig(MailConfigBindingModel config)
{
@ -75,7 +73,6 @@ namespace BlacksmithWorkshopBusinessLogic.MailWorker
_logger.LogDebug("Check Mail: {Count} new mails", list.Count);
foreach (var mail in list)
{
mail.ClientId = _clientLogic.ReadElement(new () { Email = mail.SenderName })?.Id;
_messageInfoLogic.Create(mail);
}
}