Skip to content

Azure.Core_1.23.0

Compare
Choose a tag to compare
@azure-sdk azure-sdk released this 22 Mar 01:06
d25ac7c

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 specified Assembly and an optional application Id string.
  • Added AddClassifier methods to RequestContext. 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 default ResponseClassifier for some libraries.
  • Added an extension method to BinaryData called ToObjectFromJson which converts the json value represented by BinaryData 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>