-
Notifications
You must be signed in to change notification settings - Fork 5
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
Overall timeout policy feature #37
Overall timeout policy feature #37
Conversation
sync from origin
When HttpClientTimeout less than TimeoutOverall then HttpClientTimeout equal as TimeoutOverall. tests: HttpClientWrapperBuilder using AddJsonClient instead of a direct call AddHttpClient add 5 test cases of Overall Timeout parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job actually, this issue get off the ground. I have some questions to discuss before approval. See review.
src/Dodo.HttpClient.ResiliencePolicies.Tests/TimeoutPolicyTests.cs
Outdated
Show resolved
Hide resolved
timeoutOverall combines feature httpClientTimeout timeoutOverall became required tests: fixs for new changes + Should_httpClientTimeout_is_overallTimeout_with_delta_1000ms test
sync from origin
HttpClient.Timeout set in AddJsonClient method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, currently we have good consistent code with proper OverallTimeout integration. Could I ask you to make some minor changes to make this changes easier to understand for end-users.
src/Dodo.HttpClient.ResiliencePolicies.Tests/DSL/HttpClientWrapperBuilder.cs
Outdated
Show resolved
Hide resolved
- preserve properties order: TimeoutOverall before TimeoutPerTry - TimeoutOverallInMilliseconds set 50000 - fix spelling error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job! Thank you a lot!
HttpClientSettings: add new optional parameter TimeoutOverall
When HttpClientTimeout less than TimeoutOverall then HttpClientTimeout equal as TimeoutOverall.
tests: HttpClientWrapperBuilder using AddJsonClient instead of a direct call AddHttpClient
add 5 test cases of Overall Timeout parameter
Issue #13