ПИбд-22 Петрушин Егор Лабораторная №7 Юридическая фирма #7

Closed
Egor_Petrushin wants to merge 6 commits from Lab7 into Lab6
Showing only changes of commit 85aaffc4fe - Show all commits

View File

@ -53,14 +53,13 @@ namespace LawFirmView
PopPort =
Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["PopPort"])
});
// ñîçäàåì òàéìåð
var timer = new System.Threading.Timer(new
TimerCallback(MailCheck!), null, 0, 100000);
}
catch (Exception ex)
{
var logger = _serviceProvider.GetService<ILogger>();
logger?.LogError(ex, "Îøèáêà ðàáîòû ñ ïî÷òîé");
logger?.LogError(ex, "Error");
}
Application.Run(_serviceProvider.GetRequiredService<FormMain>());