1.23.0 (2022-03-21)
Features Added
- Added the
TelemetryDetails
type which enables customization of UserAgent header values on a per-request basis based on a specifiedAssembly
and an optional application Id string. - Added
AddClassifier
methods toRequestContext
. These methods allow callers to change the response classification behavior for a given method invocation. - Added a new
StatusCodeClassifier
type that will be used as the defaultResponseClassifier
for some libraries. - Added an extension method to
BinaryData
calledToObjectFromJson
which converts the json value represented byBinaryData
to an object of a specific type. - Additional data center locations were added to
AzureLocation
. - Added
WaitUntil
enum to allow callers to set whether a method invoking a long running operation should return when the operation starts or once it has completed.
Breaking Changes
- Cookies are no longer set on requests by default. Cookies can be re-enabled for
HttpClientTransport
by either setting an AppContext switch named "Azure.Core.Pipeline.HttpClientTransport.EnableCookies" to true or by setting the environment variable, "AZURE_CORE_HTTPCLIENT_ENABLE_COOKIES" to "true". Note: AppContext switches can also be configured via configuration like below:
<ItemGroup>
<RuntimeHostConfigurationOption Include="Azure.Core.Pipeline.HttpClientTransport.EnableCookies" Value="true" />
</ItemGroup>