Microsoft Azure Storage Client Library for C++
7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
|
Represents the context for a request to the Windows Azure storage services, and provides additional runtime information about its execution. More...
Public Member Functions | |
WASTORAGE_API | operation_context () |
Initializes a new instance of the azure::storage::operation_context class. More... | |
operation_context (const operation_context &context) | |
Initializes a new instance of the azure::storage::operation_context class. More... | |
operation_context & | operator= (const operation_context &context) |
Returns a reference to an azure::storage::operation_context object. More... | |
const utility::string_t & | client_request_id () const |
Gets the client request ID. More... | |
void | set_client_request_id (utility::string_t client_request_id) |
Sets the client request ID. More... | |
utility::datetime | start_time () const |
Gets the start time of the operation. More... | |
void | set_start_time (utility::datetime start_time) |
Sets the start time of the operation. More... | |
utility::datetime | end_time () const |
Gets the end time of the operation. More... | |
void | set_end_time (utility::datetime end_time) |
Sets the end time of the operation. More... | |
client_log_level | log_level () const |
Gets the logging level to be used for an instance of the azure::storage::operation_context class. More... | |
void | set_log_level (client_log_level log_level) |
Sets the logging level to be used for an instance of the azure::storage::operation_context class. More... | |
web::http::http_headers & | user_headers () |
Gets or sets additional headers on the request, for example, for proxy or logging information. More... | |
const web::http::http_headers & | user_headers () const |
Gets or sets additional headers on the request, for example, for proxy or logging information. More... | |
const std::vector< request_result > & | request_results () const |
Gets the set of request results that the current operation has created. More... | |
void | set_sending_request (std::function< void(web::http::http_request &, operation_context)> value) |
Sets the function to call when sending a request. More... | |
void | set_response_received (std::function< void(web::http::http_request &, const web::http::http_response &, operation_context)> value) |
Sets the function that is called when a response is received from the server. More... | |
const web::web_proxy & | proxy () const |
Gets the proxy. More... | |
void | set_proxy (web::web_proxy proxy) |
Sets the proxy. More... | |
boost::log::sources::severity_logger< boost::log::trivial::severity_level > & | logger () |
Gets the logger object on this operation context. More... | |
const boost::log::sources::severity_logger< boost::log::trivial::severity_level > & | logger () const |
Gets the logger object on this operation context. More... | |
void | set_logger (boost::log::sources::severity_logger< boost::log::trivial::severity_level > logger) |
Sets the logger object on this operation context. More... | |
void | set_ssl_context_callback (const std::function< void(boost::asio::ssl::context &)> &callback) |
Sets a callback to enable custom setting of the ssl context, at construction time. More... | |
const std::function< void(boost::asio::ssl::context &)> & | get_ssl_context_callback () const |
Gets the user's callback to allow for customization of the ssl context. More... | |
void | set_native_session_handle_options_callback (const std::function< void(web::http::client::native_handle)> &callback) |
Sets a callback to enable custom setting of platform specific options. More... | |
const std::function< void(web::http::client::native_handle)> & | get_native_session_handle_options_callback () const |
Gets the user's callback to custom setting of platform specific options. More... | |
Static Public Member Functions | |
static WASTORAGE_API client_log_level | default_log_level () |
Gets the default logging level to be used for subsequently created instances of the azure::storage::operation_context class. More... | |
static WASTORAGE_API void | set_default_log_level (client_log_level log_level) |
Sets the default logging level to be used for subsequently created instances of the azure::storage::operation_context class. More... | |
static WASTORAGE_API const web::web_proxy & | default_proxy () |
Gets the default proxy to be used for subsequently created instances of the azure::storage::operation_context class. More... | |
static WASTORAGE_API void | set_default_proxy (web::web_proxy proxy) |
Sets the default proxy to be used for subsequently created instances of the azure::storage::operation_context class. More... | |
Represents the context for a request to the Windows Azure storage services, and provides additional runtime information about its execution.
WASTORAGE_API azure::storage::operation_context::operation_context | ( | ) |
Initializes a new instance of the azure::storage::operation_context class.
|
inline |
Initializes a new instance of the azure::storage::operation_context class.
context | A reference to an azure::storage::operation_context object. |
|
inline |
Gets the client request ID.
|
static |
Gets the default logging level to be used for subsequently created instances of the azure::storage::operation_context class.
|
static |
Gets the default proxy to be used for subsequently created instances of the azure::storage::operation_context class.
|
inline |
Gets the end time of the operation.
|
inline |
Gets the user's callback to custom setting of platform specific options.
|
inline |
Gets the user's callback to allow for customization of the ssl context.
|
inline |
Gets the logging level to be used for an instance of the azure::storage::operation_context class.
|
inline |
Gets the logger object on this operation context.
|
inline |
Gets the logger object on this operation context.
|
inline |
Returns a reference to an azure::storage::operation_context object.
context | A reference to an azure::storage::operation_context object. |
|
inline |
Gets the proxy.
|
inline |
Gets the set of request results that the current operation has created.
|
inline |
Sets the client request ID.
client_request_id | The client request ID. |
|
static |
Sets the default logging level to be used for subsequently created instances of the azure::storage::operation_context class.
log_level | A value of type azure::storage::client_log_level that specifies which events are logged by default by instances of the azure::storage::operation_context. |
|
static |
Sets the default proxy to be used for subsequently created instances of the azure::storage::operation_context class.
proxy | A value of type web::proxy that specifies default proxy by instances of the azure::storage::operation_context. |
The proxy uri should be in the format "//host[:port]"
|
inline |
Sets the end time of the operation.
end_time | The end time of the operation. |
|
inline |
Sets the logging level to be used for an instance of the azure::storage::operation_context class.
log_level | A value of type azure::storage::client_log_level that specifies which events are logged by the azure::storage::operation_context. |
|
inline |
Sets the logger object on this operation context.
logger | The boost::log::sources::severity_logger<boost::log::trivial::severity_level> object to use for requests made by this operation context. |
|
inline |
Sets a callback to enable custom setting of platform specific options.
callback | A user callback allowing for customization of the session. |
|
inline |
Sets the proxy.
proxy | The proxy. |
The proxy uri should be in the format "//host[:port]"
|
inline |
Sets the function that is called when a response is received from the server.
value | A pointer to a function that takes an web::http::http_request object, an web::http::http_response object, and an azure::storage::operation_context object. |
|
inline |
Sets the function to call when sending a request.
value | A pointer to a function that takes an web::http::http_request object and an azure::storage::operation_context object. |
|
inline |
Sets a callback to enable custom setting of the ssl context, at construction time.
callback | A user callback allowing for customization of the ssl context at construction time. |
|
inline |
Sets the start time of the operation.
start_time | The start time of the operation. |
|
inline |
Gets the start time of the operation.
|
inline |
Gets or sets additional headers on the request, for example, for proxy or logging information.
|
inline |
Gets or sets additional headers on the request, for example, for proxy or logging information.