comparison OrthancServer/ServerJobs/Operations/StoreScuOperation.cpp @ 3850:d729d6e8b484

removing useless abstraction IDicomConnectionManager
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 Apr 2020 14:45:21 +0200
parents 4fc24b69446a
children 6498739a3c3c
comparison
equal deleted inserted replaced
3849:8c96b20fb275 3850:d729d6e8b484
42 42
43 namespace Orthanc 43 namespace Orthanc
44 { 44 {
45 void StoreScuOperation::Apply(JobOperationValues& outputs, 45 void StoreScuOperation::Apply(JobOperationValues& outputs,
46 const JobOperationValue& input, 46 const JobOperationValue& input,
47 IDicomConnectionManager& connectionManager) 47 TimeoutDicomConnectionManager& connectionManager)
48 { 48 {
49 std::unique_ptr<IDicomConnectionManager::IResource> resource 49 std::unique_ptr<TimeoutDicomConnectionManager::Resource> resource
50 (connectionManager.AcquireConnection(localAet_, modality_)); 50 (connectionManager.AcquireConnection(localAet_, modality_));
51 51
52 if (resource.get() == NULL) 52 if (resource.get() == NULL)
53 { 53 {
54 LOG(ERROR) << "Lua: Cannot connect to modality: " << modality_.GetApplicationEntityTitle(); 54 LOG(ERROR) << "Lua: Cannot connect to modality: " << modality_.GetApplicationEntityTitle();