From 804cd15a457d51bdffc6155884d6355c5679a00f Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 3 Aug 2023 15:22:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TimedTaskBackgroundService.cs | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs b/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs index 728d6155..50d0298e 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/TimedTaskBackgroundService.cs @@ -48,49 +48,6 @@ namespace Tnb.WarehouseMgr //齐套分拣 var setSortingService = App.GetRequiredService(); await TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds); - - #region 老的方式 - //TimedTask(withOutParamAction: () => Task.Run(async () => - //{ - // while (!genTaskToken.IsCancellationRequested) - // { - // await wareHouseService.GenTaskExecute(genTaskCTS).Catch(ex => - // { - - // }); - // await Task.Delay(1000); - // } - //}, genTaskToken)); - - - //CancellationTokenSource kittingOutAddCts = new(); - //CancellationToken kittingOutAddToken = kittingOutAddCts.Token; - - - //var kittingOutService = App.GetRequiredService(); - //TimedTask(withOutParamAction: () => Task.Run(async () => - //{ - // while (!kittingOutAddToken.IsCancellationRequested) - // { - // await kittingOutService.KittingOutByAdd(kittingOutAddCts); - // await Task.Delay(1000); - // } - //}, kittingOutAddToken)); - - - //CancellationTokenSource kittingOutShippedCts = new(); - //CancellationToken kittingOutShippedToken = kittingOutShippedCts.Token; - - //TimedTask(withOutParamAction: () => Task.Run(async () => - //{ - // while (!kittingOutShippedToken.IsCancellationRequested) - // { - // await kittingOutService.KittingOutByIsToBeShipped(kittingOutShippedCts); - // await Task.Delay(1000); - // } - //}, kittingOutShippedToken)); - #endregion - }); }