change - 修改报错

master
SoulStar 2 months ago
parent 32b2acc58e
commit ef1c87e84e

@ -20,15 +20,7 @@ namespace SlnMesnac.Business.Airport
protected async override Task ExecuteAsync(CancellationToken stoppingToken) protected async override Task ExecuteAsync(CancellationToken stoppingToken)
{ {
_airportTaskService.CreateDataBase();
while (!stoppingToken.IsCancellationRequested)
{
//执行任务
Console.WriteLine($"{DateTime.Now}");
//周期性任务于上次任务执行完成后等待5秒执行下一次任务
await Task.Delay(500);
}
return; return;
} }
} }

@ -23,7 +23,7 @@
{ {
"configId": "AGV", "configId": "AGV",
"dbType": 2, "dbType": 2,
"connStr": "Data Source=F:\\Mesnac\\2023部门项目\\机场AGV调度\\HightWay_AirPot_WCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite;" "connStr": "Data Source=D:\\WorkCode\\AirPortWCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite"
} }
], ],
"PlcConfig": [ "PlcConfig": [

Loading…
Cancel
Save