1
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// 定时任务
|
||||
/// added by ly on 20230802
|
||||
/// </summary>
|
||||
public class TimedTaskBackgroundService : BackgroundService
|
||||
public class TimedTaskBackgroundService : IHostedService
|
||||
{
|
||||
private ISendMessageService? _sendService;
|
||||
|
||||
@@ -50,8 +50,6 @@ namespace Tnb.WarehouseMgr
|
||||
TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private Task TimedTask(Func<CancellationTokenSource, Task> action, CancellationTokenSource cts, List<string>? toUserIds = default)
|
||||
{
|
||||
var token = cts.Token;
|
||||
|
||||
Reference in New Issue
Block a user