@@ -1728,6 +1728,23 @@ namespace azure { namespace storage {
1728
1728
}
1729
1729
#endif
1730
1730
1731
+ // / <summary>
1732
+ // / Sets a callback to enable custom setting of platform specific options.
1733
+ // / </summary>
1734
+ // / <param name="callback">A user callback allowing for customization of the session.</param>
1735
+ void set_native_session_handle_options_callback (const std::function<void (web::http::client::native_handle)>& callback)
1736
+ {
1737
+ m_native_session_handle_options_callback = callback;
1738
+ }
1739
+
1740
+ // / <summary>
1741
+ // / Gets the user's callback to custom setting of platform specific options.
1742
+ // / </summary>
1743
+ const std::function<void (web::http::client::native_handle)>& get_native_session_handle_options_callback () const
1744
+ {
1745
+ return m_native_session_handle_options_callback;
1746
+ }
1747
+
1731
1748
private:
1732
1749
1733
1750
std::function<void (web::http::http_request &, operation_context)> m_sending_request;
@@ -1744,6 +1761,7 @@ namespace azure { namespace storage {
1744
1761
boost::log::sources::severity_logger<boost::log::trivial::severity_level> m_logger;
1745
1762
std::function<void (boost::asio::ssl::context&)> m_ssl_context_callback; // No need to initialize as CPPRest does not initialize it.
1746
1763
#endif
1764
+ std::function<void (web::http::client::native_handle)> m_native_session_handle_options_callback;
1747
1765
};
1748
1766
1749
1767
// / <summary>
@@ -1991,6 +2009,23 @@ namespace azure { namespace storage {
1991
2009
}
1992
2010
#endif
1993
2011
2012
+ // / <summary>
2013
+ // / Sets a callback to enable custom setting of platform specific options.
2014
+ // / </summary>
2015
+ // / <param name="callback">A user callback allowing for customization of the session.</param>
2016
+ void set_native_session_handle_options_callback (const std::function<void (web::http::client::native_handle)>& callback)
2017
+ {
2018
+ m_impl->set_native_session_handle_options_callback (callback);
2019
+ }
2020
+
2021
+ // / <summary>
2022
+ // / Gets the user's callback to custom setting of platform specific options.
2023
+ // / </summary>
2024
+ const std::function<void (web::http::client::native_handle)>& get_native_session_handle_options_callback () const
2025
+ {
2026
+ return m_impl->get_native_session_handle_options_callback ();
2027
+ }
2028
+
1994
2029
std::shared_ptr<_operation_context> _get_impl () const
1995
2030
{
1996
2031
return m_impl;
0 commit comments