CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_message_invoker.h
1
2#pragma once
3
4#include <system/idisposable.h>
5#include <system/shared_ptr.h>
6
7#include <net/http/http_message_handler.h>
8
9namespace System { namespace Net { namespace Http {
10
15class ASPOSECPP_SHARED_CLASS HttpMessageInvoker : public System::IDisposable
16{
21
23 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
25 ASPOSECPP_SHARED_RTTI_INFO_DECL();
26
27public:
34 ASPOSECPP_SHARED_API HttpMessageInvoker(System::SharedPtr<HttpMessageHandler> handler, bool disposeHandler);
35
41 ASPOSECPP_SHARED_API void Dispose() override;
42
43protected:
46 virtual void Dispose(bool disposing);
47
48private:
50 bool _disposed;
52 bool _disposeHandler;
55
58 void CheckDisposed();
59};
60
61}}} // namespace System::Net::Http
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Allows applications to call the Send method on an HTTP handler chain. Objects of this class should on...
Definition: http_message_invoker.h:16
HttpMessageInvoker(System::SharedPtr< HttpMessageHandler > handler)
Constructs a new instance.
void Dispose() override
Disposes the current instance. This method also disposes the handler if required.
virtual System::SharedPtr< HttpResponseMessage > Send(System::SharedPtr< HttpRequestMessage > request)
Sends the specified request.
HttpMessageInvoker(System::SharedPtr< HttpMessageHandler > handler, bool disposeHandler)
Constructs a new instance.
virtual void Dispose(bool disposing)
Disposes the current instance. This method also disposes the handler if required.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9