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 - }); }