1.22.0 (2022-01-11)
Features Added
- Added
AddPolicies
method toRequestContext
. This allows policies to be added to the pipeline when calling protocol methods. - Added
IsError
property toResponse
. This will indicate whether the message'sResponseClassifier
considers the response to be an error. - Added
RequestFailedException
constructor that takes aResponse
. - 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 whichSubscriptionId
does the resource belong to. - Added
ResourceType
. This class represents the ARM provider information for a given resource and is used by theResourceIdentifier
class. - Added
HttpPipelineTransportOptions
type. This type contains aServerCertificateCustomValidationCallback
property that allows callers to set aFunc<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 anHttpPipelineTransportOptions
instance. This overload creates anHttpPipeline
with the default transport configuration and theHttpPipelineTransportOptions
applied. It returns aDisposableHttpPipeline
that implementsIDisposable
. Note: TheHttpPipelineTransportOptions
will not be applied if a customTransport
has been set in theClientOptions
. 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.