Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Response.IsError #24122

Merged
merged 29 commits into from
Sep 22, 2021
Merged

Conversation

annelo-msft
Copy link
Member

@annelo-msft annelo-msft commented Sep 20, 2021

As part of #23372 (comment), we'll add an IsError property to Response. This is currently being implemented as an extension method in Experimental as a proof of concept before moving it into Azure.Core.

IsError must be set before Request is disposed because it takes the HttpMessage. We also want to make the value of IsError available on Response in the pipeline, so we call EvaluateError() in a pipeline policy just after the response is received by the transport.

Per @pakrym, client request id can be set on response in the same pipeline policy.

@ghost ghost added the Azure.Core label Sep 20, 2021
@annelo-msft annelo-msft marked this pull request as ready for review September 20, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants