-
Notifications
You must be signed in to change notification settings - Fork 748
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
Allow to configure ssl in vanilla connection string #1672
Conversation
[Fact] | ||
public void Should_parse_global_timeout() | ||
{ | ||
const string connectionStringWithTimeout = "host=localhost;timeout=13"; |
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.
Timeout is covered by the previous test
if (!propertyInfo.CanWrite) | ||
throw new ArgumentOutOfRangeException(nameof(getter), "Member is not a writeable property"); | ||
|
||
var valueParameterExpr = Expression.Parameter(typeof(TProperty), "value"); |
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.
To support expressions with a single member access(c => c.Name
) as well as with multiple ones(c => c.Ssl.Enabled
).
* Allow to enable ssl in vanilla connection string * Remove irrelevant comments * Support other ssl options * Ssl server name should be taken from the hostname * Stop setting a default version * Defensively copy Ssl, set hostname to servername * Remain only ssl flag * Remove useless comments * Do not copy endpoint ssl * Simplify code
Alternative to #1671, supports only
ssl=true
parameter.There is no need to patch hosts because of that: