github Azure/azure-sdk-for-net Azure.Core_1.22.0

latest releases: Azure.Template_1.0.3-beta.3789903, Azure.Template_1.0.3-beta.3789538, Azure.Template_1.0.3-beta.3789610...
2 years ago

1.22.0 (2022-01-11)

Features Added

  • Added AddPolicies method to RequestContext. This allows policies to be added to the pipeline when calling protocol methods.
  • Added IsError property to Response. This will indicate whether the message's ResponseClassifier considers the response to be an error.
  • Added RequestFailedException constructor that takes a Response.
  • Added AzureLocation. This class gives static references to known Azure regions.
  • Added ResourceIdentifier. This class allows users to load an Azure resource identifier string and parse out the pieces of that string such as which SubscriptionId does the resource belong to.
  • Added ResourceType. This class represents the ARM provider information for a given resource and is used by the ResourceIdentifier class.
  • Added HttpPipelineTransportOptions type. This type contains a ServerCertificateCustomValidationCallback property that allows callers to set a Func<ServerCertificateCustomValidationArgs, bool> delegate. If set, the delegate will be called to validate the server side TLS certificate.
  • Added a new static overload for HttpPipelineBuilder.Build that takes an HttpPipelineTransportOptions instance. This overload creates an HttpPipeline with the default transport configuration and the HttpPipelineTransportOptions applied. It returns a DisposableHttpPipeline that implements IDisposable. Note: The HttpPipelineTransportOptions will not be applied if a custom Transport has been set in the ClientOptions. In the case that transport options were provided but not applied, an event is logged (PipelineTransportOptionsNotApplied).

Breaking Changes

  • Added logging of api-version query parameter by default. In order to redact this, you can do the following:
options.Diagnostics.LoggedQueryParameters.Remove("api-version");

Bugs Fixed

  • Fixed a bug where requests were failing with NotImplementedException on Unity with .NET Framework scripting.

Don't miss a new azure-sdk-for-net release

NewReleases is sending notifications on new releases.