From 44b54a1796a7fb85a62f6f490c0917b32d579205 Mon Sep 17 00:00:00 2001 From: wangsr Date: Thu, 17 Aug 2023 16:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Main/MCRun/Program.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Main/MCRun/Program.cs b/Main/MCRun/Program.cs index 2c9b327..485f929 100644 --- a/Main/MCRun/Program.cs +++ b/Main/MCRun/Program.cs @@ -20,6 +20,7 @@ namespace MCRun using Mesnac.PlcUtils.enumInfo; using Mesnac.PlcUtils.Impl; using System.Drawing.Drawing2D; + using System.Threading.Tasks; class Program { @@ -195,8 +196,11 @@ namespace MCRun private void Timer_Tick(object sender, EventArgs e) { -// 定时触发的操作 - FinishBatchService.Instance.Start(); + // 定时触发的操作 + Task.Run(() => { + + // FinishBatchService.Instance.Start(); + }); } } }