diff OrthancServer/Scheduler/StorePeerCommand.cpp @ 2020:a0bd8cd55da7

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 15 Jun 2016 17:19:10 +0200
parents 9c9332e486ca
children 2b1520efa282
line wrap: on
line diff
--- a/OrthancServer/Scheduler/StorePeerCommand.cpp	Tue Jun 14 17:53:23 2016 +0200
+++ b/OrthancServer/Scheduler/StorePeerCommand.cpp	Wed Jun 15 17:19:10 2016 +0200
@@ -39,7 +39,7 @@
 namespace Orthanc
 {
   StorePeerCommand::StorePeerCommand(ServerContext& context,
-                                     const OrthancPeerParameters& peer,
+                                     const WebServiceParameters& peer,
                                      bool ignoreExceptions) : 
     context_(context),
     peer_(peer),
@@ -51,10 +51,7 @@
                                const ListOfStrings& inputs)
   {
     // Configure the HTTP client
-    HttpClient client;
-    peer_.ConfigureClient(client);
-
-    client.SetUrl(peer_.GetUrl() + "instances");
+    HttpClient client(peer_, "instances");
     client.SetMethod(HttpMethod_Post);
 
     for (ListOfStrings::const_iterator