фикс таймера

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 var timer = new System.Threading.Timer(new
TimerCallback(MailCheck!), null, 0, 1000); TimerCallback(MailCheck!), null, 0, 100000);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -89,7 +89,6 @@ namespace FurnitureAssembly
services.AddSingleton<AbstractMailWorker, MailKitWorker>(); services.AddSingleton<AbstractMailWorker, MailKitWorker>();
services.AddTransient<AbstractSaveToExcel, SaveToExcel>(); services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
services.AddTransient<AbstractSaveToWord, SaveToWord>(); services.AddTransient<AbstractSaveToWord, SaveToWord>();
services.AddTransient<AbstractSaveToPdf, SaveToPdf>(); services.AddTransient<AbstractSaveToPdf, SaveToPdf>();