diff --git a/sdk/core/azure-core/inc/azure/core/datetime.hpp b/sdk/core/azure-core/inc/azure/core/datetime.hpp index 90a016ed4..2da452552 100644 --- a/sdk/core/azure-core/inc/azure/core/datetime.hpp +++ b/sdk/core/azure-core/inc/azure/core/datetime.hpp @@ -52,16 +52,10 @@ namespace _detail { * @remark This class is supposed to be able to handle a DateTime that comes over the wire. */ class DateTime : public _detail::Clock::time_point { - AZ_CORE_DLLEXPORT static DateTime const SystemClockEpoch; - -public: - /** - * @brief Construct a default instance of #Azure::DateTime (00:00:00.0000000 on Janualy - * 1st, 0001). - */ - constexpr DateTime() : time_point() {} private: + AZ_CORE_DLLEXPORT static DateTime const SystemClockEpoch; + DateTime( int16_t year, int8_t month, @@ -90,6 +84,12 @@ private: std::string ToStringRfc1123() const; public: + /** + * @brief Construct a default instance of #Azure::DateTime (00:00:00.0000000 on Janualy + * 1st, 0001). + */ + constexpr DateTime() : time_point() {} + /** * @brief Construct an instance of #Azure::DateTime. * diff --git a/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp b/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp index b8fb45cdf..a54996e09 100644 --- a/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp +++ b/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp @@ -323,6 +323,7 @@ namespace Azure { namespace Core { namespace Http { namespace Policies { * @remark See https://azure.github.io/azure-sdk/general_azurecore.html#telemetry-policy. */ class TelemetryPolicy : public HttpPolicy { + private: std::string const m_telemetryId; static std::string BuildTelemetryId(