Wms 预任务执行,新增Agv任务,呼梯任务,电梯任务条件过滤进行区分

This commit is contained in:
yang.lee
2023-10-13 09:38:05 +08:00
parent 8100ce0a21
commit 02b718157d
7 changed files with 151 additions and 100 deletions

View File

@@ -37,8 +37,17 @@ namespace Tnb.WarehouseMgr
{
while (!stoppingToken.IsCancellationRequested)
{
await HttpClientHelper.GetAsync(_elevatorControlConfiguration.WriteTagUrl, parameter);
await Task.Delay(TimeSpan.FromMinutes(1));
try
{
var result = await HttpClientHelper.GetAsync(_elevatorControlConfiguration.WriteTagUrl, pars: parameter);
await Console.Out.WriteLineAsync($"心跳检测结果:{result}");
await Task.Delay(TimeSpan.FromSeconds(5));
}
catch (Exception ex)
{
throw;
}
}
});