Mercurial > hg > orthanc-stone
comparison Platforms/Generic/WebServiceCommandBase.h @ 1059:e713f1a99861 broker
replacing MessageBroker by weak_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Oct 2019 17:08:34 +0200 |
parents | 861c080ef47b |
children | 21c2b0eee53c |
comparison
equal
deleted
inserted
replaced
1058:a36c47487a70 | 1059:e713f1a99861 |
---|---|
49 IWebService::HttpHeaders answerHeaders_; | 49 IWebService::HttpHeaders answerHeaders_; |
50 OrthancStone::NativeStoneApplicationContext& context_; | 50 OrthancStone::NativeStoneApplicationContext& context_; |
51 unsigned int timeoutInSeconds_; | 51 unsigned int timeoutInSeconds_; |
52 | 52 |
53 public: | 53 public: |
54 WebServiceCommandBase(OrthancStone::MessageBroker& broker, | 54 WebServiceCommandBase(OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership |
55 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership | |
56 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership | 55 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership |
57 const Orthanc::WebServiceParameters& parameters, | 56 const Orthanc::WebServiceParameters& parameters, |
58 const std::string& url, | 57 const std::string& url, |
59 const IWebService::HttpHeaders& headers, | 58 const IWebService::HttpHeaders& headers, |
60 unsigned int timeoutInSeconds, | 59 unsigned int timeoutInSeconds, |