comparison Applications/IBasicApplication.cpp @ 82:cee8f308a4bc wasm

Getting rid of Orthanc*WebService
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 May 2017 23:05:10 +0200
parents 8677d95753f8
children fcec0ab44054
comparison
equal deleted inserted replaced
81:8677d95753f8 82:cee8f308a4bc
197 } 197 }
198 198
199 LOG(WARNING) << "URL to the Orthanc REST API: " << webService.GetUrl(); 199 LOG(WARNING) << "URL to the Orthanc REST API: " << webService.GetUrl();
200 200
201 { 201 {
202 OrthancSynchronousWebService orthanc(webService); 202 OrthancPlugins::OrthancHttpConnection orthanc(webService);
203 203 if (!MessagingToolbox::CheckOrthancVersion(orthanc))
204 if (!MessagingToolbox::CheckOrthancVersion(orthanc.GetConnection()))
205 { 204 {
206 LOG(ERROR) << "Your version of Orthanc is incompatible with Orthanc Stone, please upgrade"; 205 LOG(ERROR) << "Your version of Orthanc is incompatible with Orthanc Stone, please upgrade";
207 throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); 206 throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol);
208 } 207 }
209 } 208 }