фикс таймера

This commit is contained in:
Alina Batylkina 2023-05-23 21:55:08 +04:00
parent 56595010b4
commit f17beede1e

View File

@ -53,7 +53,7 @@ namespace FurnitureAssembly
});
// ñîçäàåì òàéìåð
var timer = new System.Threading.Timer(new
TimerCallback(MailCheck!), null, 0, 1000);
TimerCallback(MailCheck!), null, 0, 100000);
}
catch (Exception ex)
{
@ -89,7 +89,6 @@ namespace FurnitureAssembly
services.AddSingleton<AbstractMailWorker, MailKitWorker>();
services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
services.AddTransient<AbstractSaveToWord, SaveToWord>();
services.AddTransient<AbstractSaveToPdf, SaveToPdf>();