-
Notifications
You must be signed in to change notification settings - Fork 772
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
[SDK] Remove the dependency on M.E.C.EnvironmentVariables #4092
Conversation
…ntVariables from SDK.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4092 +/- ##
==========================================
- Coverage 85.59% 85.49% -0.11%
==========================================
Files 289 292 +3
Lines 11261 11306 +45
==========================================
+ Hits 9639 9666 +27
- Misses 1622 1640 +18
|
private const string MySqlServerPrefix = "MYSQLCONNSTR_"; | ||
private const string SqlAzureServerPrefix = "SQLAZURECONNSTR_"; | ||
private const string SqlServerPrefix = "SQLCONNSTR_"; | ||
private const string CustomConnectionStringPrefix = "CUSTOMCONNSTR_"; |
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.
@alanwest @cijothomas I was just chatting with @reyang about this. So the new feature we are supporting in 1.4.0 is we will look for environment variables using IConfiguration. This code is only ever used for Sdk.Create* style to build IConfiguration from environment variables as backwards compatibility for users without hosting. So strictly speaking, we do not need this connection string logic. We don't support it in 1.3.0 and we don't need to in 1.4.0. Thinking we should remove this and slim it down as a follow-up.
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.
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
…etry#4092) * Remove the dependency on Microsoft.Extensions.Configuration.EnvironmentVariables from SDK. * Added notes. * CHANGELOG patch.
Fixes #4084
Changes
Consumes the bits from Microsoft.Extensions.Configuration.EnvironmentVariables so the SDK doesn't need a dependency.
TODOs
CHANGELOG.md
updated for non-trivial changes