|
@@ -12,11 +12,11 @@ using XdCxRhDW.Dto;
|
|
|
|
|
|
namespace X2D1NoRefTaskServer.Service
|
|
|
{
|
|
|
- public class HistoryTaskService
|
|
|
+ public class TaskService
|
|
|
{
|
|
|
private readonly string baseUrl;
|
|
|
CancellationTokenSource cts;
|
|
|
- public HistoryTaskService()
|
|
|
+ public TaskService()
|
|
|
{
|
|
|
var posPlatformAddr = ConfigurationManager.AppSettings["PosPlatformAddr"].Trim();//like http://127.0.0.1:8091 or http://127.0.0.1:8091/
|
|
|
if (posPlatformAddr.EndsWith("/"))
|
|
@@ -24,7 +24,7 @@ namespace X2D1NoRefTaskServer.Service
|
|
|
else
|
|
|
this.baseUrl = posPlatformAddr + "/api/";
|
|
|
}
|
|
|
- public void StartAsync(X2D1HistoryTaskHandleDto dto)
|
|
|
+ public void StartAsync(X2D1NoRefTaskHandleDto dto)
|
|
|
{
|
|
|
cts = new CancellationTokenSource();
|
|
|
if (!Directory.Exists(dto.CapDir))
|
|
@@ -301,7 +301,7 @@ namespace X2D1NoRefTaskServer.Service
|
|
|
time = time.AddHours(1);
|
|
|
}
|
|
|
}
|
|
|
- private HistoryFile FileToHistoryFile(X2D1HistoryTaskHandleDto dto, string filePath, bool canConnected)
|
|
|
+ private HistoryFile FileToHistoryFile(X2D1NoRefTaskHandleDto dto, string filePath, bool canConnected)
|
|
|
{ //读取采集文件
|
|
|
//2024_01_31_10_01_51_000000000_ch11_-1__Nxx.xxxxxx_Exx.xxxxxx_xxxxx.xxxHz_xxx.xxxMHz_ch1_xd1.dat
|
|
|
HistoryFile historyFile = new HistoryFile();
|