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

Change ResponseClassifier to take Message #7595

Merged
merged 5 commits into from
Sep 13, 2019

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Sep 12, 2019

Add it to HttpPipeline
Take it off ClientOptions

Fixes: #7594

{
var policies = new List<HttpPipelinePolicy>();

policies.AddRange(perCallClientPolicies);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

{
return response.Status == 429 || response.Status == 503;
return message.Response.Status == 429 || message.Response.Status == 503;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: store off the status into local variable?

@pakrym pakrym requested a review from amnguye as a code owner September 13, 2019 21:22
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.

Remove ResponseClassifier of ClientOptions, change it to take HttpMessage
3 participants