-
Notifications
You must be signed in to change notification settings - Fork 16
Add copy constructor to RequestConfiguration{Descriptor}
#133
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
Conversation
I think some of those need cleaning/fixing up. |
Mpdreamz
left a comment
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.
Echo'ing what Steve said, the RequestCongfiguration and RequestData need another pass to ensure conformity.
Happy to take that on in another PR :)
For this PR can we add another test to ensure all properties get passed through similar to ITransportConfiguration ?
elastic-transport-net/tests/Elastic.Transport.Tests/Configuration/TransportConfigurationTests.cs
Line 42 in 95ea6c6
| public void CopiesAllProperties() |
| PingTimeout = PingTimeout, | ||
| RequestTimeout = PingTimeout, | ||
| Authentication = _requestData.AuthenticationHeader, | ||
| EnableHttpPipelining = _requestData.HttpPipeliningEnabled, |
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.
That property was not wired at all 😅
|
I removed the properties which are not present in the interface, added methods for the ones that ARE present in the interface but were not settable in the descriptor, and added some tests for the |
stevejgordon
left a comment
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.
LGTM - thanks
As titled.
What is the deal with
DisablePing,EnableHttpPipelininginRequestConfiguration(both properties are not part of the interface) and_enableHttpCompressionand_maxRetryTimeoutinRequestConfigurationDescriptor(both fields don't have a corresponding setter-method)?Is that by design or a leftover of the refactoring?