@@ -17,7 +17,7 @@ private enum Tristate : byte
17
17
18
18
internal const string MakeReadAsyncBlockingString = @"Switch.Microsoft.Data.SqlClient.MakeReadAsyncBlocking" ;
19
19
internal const string LegacyRowVersionNullString = @"Switch.Microsoft.Data.SqlClient.LegacyRowVersionNullBehavior" ;
20
- internal const string SuppressInsecureTLSWarningString = @"Switch.Microsoft.Data.SqlClient.SuppressInsecureTLSWarning" ;
20
+ internal const string SuppressInsecureTlsWarningString = @"Switch.Microsoft.Data.SqlClient.SuppressInsecureTLSWarning" ;
21
21
internal const string UseMinimumLoginTimeoutString = @"Switch.Microsoft.Data.SqlClient.UseOneSecFloorInTimeoutCalculationDuringLogin" ;
22
22
internal const string LegacyVarTimeZeroScaleBehaviourString = @"Switch.Microsoft.Data.SqlClient.LegacyVarTimeZeroScaleBehaviour" ;
23
23
internal const string UseCompatibilityProcessSniString = @"Switch.Microsoft.Data.SqlClient.UseCompatibilityProcessSni" ;
@@ -26,13 +26,13 @@ private enum Tristate : byte
26
26
27
27
// this field is accessed through reflection in tests and should not be renamed or have the type changed without refactoring NullRow related tests
28
28
private static Tristate s_legacyRowVersionNullBehavior ;
29
- private static Tristate s_suppressInsecureTLSWarning ;
29
+ private static Tristate s_suppressInsecureTlsWarning ;
30
30
private static Tristate s_makeReadAsyncBlocking ;
31
31
private static Tristate s_useMinimumLoginTimeout ;
32
32
// this field is accessed through reflection in Microsoft.Data.SqlClient.Tests.SqlParameterTests and should not be renamed or have the type changed without refactoring related tests
33
33
private static Tristate s_legacyVarTimeZeroScaleBehaviour ;
34
- private static Tristate s_useCompatProcessSni ;
35
- private static Tristate s_useCompatAsyncBehaviour ;
34
+ private static Tristate s_useCompatibilityProcessSni ;
35
+ private static Tristate s_useCompatibilityAsyncBehaviour ;
36
36
private static Tristate s_useConnectionPoolV2 ;
37
37
38
38
#if NET
@@ -52,8 +52,8 @@ static LocalAppContextSwitches()
52
52
#endif
53
53
54
54
#if NETFRAMEWORK
55
- internal const string DisableTNIRByDefaultString = @"Switch.Microsoft.Data.SqlClient.DisableTNIRByDefaultInConnectionString" ;
56
- private static Tristate s_disableTNIRByDefault ;
55
+ internal const string DisableTnirByDefaultString = @"Switch.Microsoft.Data.SqlClient.DisableTNIRByDefaultInConnectionString" ;
56
+ private static Tristate s_disableTnirByDefault ;
57
57
58
58
/// <summary>
59
59
/// Transparent Network IP Resolution (TNIR) is a revision of the existing MultiSubnetFailover feature.
@@ -70,22 +70,22 @@ static LocalAppContextSwitches()
70
70
///
71
71
/// This app context switch defaults to 'false'.
72
72
/// </summary>
73
- public static bool DisableTNIRByDefault
73
+ public static bool DisableTnirByDefault
74
74
{
75
75
get
76
76
{
77
- if ( s_disableTNIRByDefault == Tristate . NotInitialized )
77
+ if ( s_disableTnirByDefault == Tristate . NotInitialized )
78
78
{
79
- if ( AppContext . TryGetSwitch ( DisableTNIRByDefaultString , out bool returnedValue ) && returnedValue )
79
+ if ( AppContext . TryGetSwitch ( DisableTnirByDefaultString , out bool returnedValue ) && returnedValue )
80
80
{
81
- s_disableTNIRByDefault = Tristate . True ;
81
+ s_disableTnirByDefault = Tristate . True ;
82
82
}
83
83
else
84
84
{
85
- s_disableTNIRByDefault = Tristate . False ;
85
+ s_disableTnirByDefault = Tristate . False ;
86
86
}
87
87
}
88
- return s_disableTNIRByDefault == Tristate . True ;
88
+ return s_disableTnirByDefault == Tristate . True ;
89
89
}
90
90
}
91
91
#endif
@@ -99,18 +99,18 @@ public static bool UseCompatibilityProcessSni
99
99
{
100
100
get
101
101
{
102
- if ( s_useCompatProcessSni == Tristate . NotInitialized )
102
+ if ( s_useCompatibilityProcessSni == Tristate . NotInitialized )
103
103
{
104
104
if ( AppContext . TryGetSwitch ( UseCompatibilityProcessSniString , out bool returnedValue ) && returnedValue )
105
105
{
106
- s_useCompatProcessSni = Tristate . True ;
106
+ s_useCompatibilityProcessSni = Tristate . True ;
107
107
}
108
108
else
109
109
{
110
- s_useCompatProcessSni = Tristate . False ;
110
+ s_useCompatibilityProcessSni = Tristate . False ;
111
111
}
112
112
}
113
- return s_useCompatProcessSni == Tristate . True ;
113
+ return s_useCompatibilityProcessSni == Tristate . True ;
114
114
}
115
115
}
116
116
@@ -135,18 +135,18 @@ public static bool UseCompatibilityAsyncBehaviour
135
135
return true ;
136
136
}
137
137
138
- if ( s_useCompatAsyncBehaviour == Tristate . NotInitialized )
138
+ if ( s_useCompatibilityAsyncBehaviour == Tristate . NotInitialized )
139
139
{
140
140
if ( AppContext . TryGetSwitch ( UseCompatibilityAsyncBehaviourString , out bool returnedValue ) && returnedValue )
141
141
{
142
- s_useCompatAsyncBehaviour = Tristate . True ;
142
+ s_useCompatibilityAsyncBehaviour = Tristate . True ;
143
143
}
144
144
else
145
145
{
146
- s_useCompatAsyncBehaviour = Tristate . False ;
146
+ s_useCompatibilityAsyncBehaviour = Tristate . False ;
147
147
}
148
148
}
149
- return s_useCompatAsyncBehaviour == Tristate . True ;
149
+ return s_useCompatibilityAsyncBehaviour == Tristate . True ;
150
150
}
151
151
}
152
152
@@ -155,22 +155,22 @@ public static bool UseCompatibilityAsyncBehaviour
155
155
/// This warning can be suppressed by enabling this AppContext switch.
156
156
/// This app context switch defaults to 'false'.
157
157
/// </summary>
158
- public static bool SuppressInsecureTLSWarning
158
+ public static bool SuppressInsecureTlsWarning
159
159
{
160
160
get
161
161
{
162
- if ( s_suppressInsecureTLSWarning == Tristate . NotInitialized )
162
+ if ( s_suppressInsecureTlsWarning == Tristate . NotInitialized )
163
163
{
164
- if ( AppContext . TryGetSwitch ( SuppressInsecureTLSWarningString , out bool returnedValue ) && returnedValue )
164
+ if ( AppContext . TryGetSwitch ( SuppressInsecureTlsWarningString , out bool returnedValue ) && returnedValue )
165
165
{
166
- s_suppressInsecureTLSWarning = Tristate . True ;
166
+ s_suppressInsecureTlsWarning = Tristate . True ;
167
167
}
168
168
else
169
169
{
170
- s_suppressInsecureTLSWarning = Tristate . False ;
170
+ s_suppressInsecureTlsWarning = Tristate . False ;
171
171
}
172
172
}
173
- return s_suppressInsecureTLSWarning == Tristate . True ;
173
+ return s_suppressInsecureTlsWarning == Tristate . True ;
174
174
}
175
175
}
176
176
0 commit comments