-
Notifications
You must be signed in to change notification settings - Fork 292
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
Enable Managed SNI on Windows with AppContext switch #477
Conversation
The environment variable option is useful both in debugging and some deployment scenarios like azure where recompiling may be difficult but the environment is mutable. Any change of keeping that option around? |
@Wraith2 you can use Environment variable and use that in your app startup to Set App Context switch like I did in DataTestUtility class. On discussion with Saurabh, we concluded 1 enabling option only with App Context switch as that's .NETs standardized approach to toggle optional/preview behaviours. We shall be using more of these for future optional/preview features or toggle options for backwards compatibility. |
If you are going to do that, it would be very useful to have them documented in a central location. |
Some random thoughts.
|
Enabling preview of Managed SNI on Windows for testing and debugging purposes.
With this change, users will be able to specify the below
AppContext
switch to toggle driver's behavior to use Managed SNI in .NET Core 2.1+ and .NET Standard 2.0+ projects on Windows.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows
EDIT: Starting in 2.0 Preview 3, the context switch name was standardized to: "Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows".
[NOTE] Known differences when compared to Native SNI.dll: