后台任务Cmove 影像
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2024-12-16 13:44:54 +08:00
parent 0a368c0607
commit d0a3ce9a09
1 changed files with 15 additions and 13 deletions

View File

@ -3018,28 +3018,30 @@ namespace IRaCIS.Application.Services
if (find != null)
{
await Task.Run(async () =>
{
var task = Task.Run(async () =>
{
var client = DicomClientFactory.Create(find.IP, find.Port, false, "HIRSCUAE", find.CalledAE);
client.NegotiateAsyncOps();
var client = DicomClientFactory.Create(find.IP, find.Port, false, "HIRSCUAE", find.CalledAE);
client.NegotiateAsyncOps();
var cmoveRequestList = new List<DicomCMoveRequest>();
var cmoveRequestList = new List<DicomCMoveRequest>();
foreach (var item in inCommand.StudyInstanceUIDList)
{
cmoveRequestList.Add(new DicomCMoveRequest(hirServer.CalledAE, item));
}
foreach (var item in inCommand.StudyInstanceUIDList)
{
cmoveRequestList.Add(new DicomCMoveRequest(hirServer.CalledAE, item));
}
await client.AddRequestsAsync(cmoveRequestList);
await client.SendAsync();
});
await client.AddRequestsAsync(cmoveRequestList);
await client.SendAsync();
});
}
return ResponseOutput.Ok();
}
#endregion
}