You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Extract ConsumerInfo and SqlAsyncCallbackDelegate and migrate usages
* Extracting AuthProviderInfo, migrating usages
* Extracting ConsumerNumber, migrating usages
* Extracting IoType, Prefix, Provider, and QueryType, migrating usages
* Extract secur32 interop for netfx usage only
* Extracting the rest of the enums/structs, migrating usages
* Extract SniErrors (and merge it at the same time), delete netcore's SNINativeMethodWrapper.Common.cs
* Extract SqlDependencyProcessDispatcherStorage
// handle special SNI error codes that are converted into exception which is not a SqlException.
1491
1492
switch (details.sniErrorNumber)
1492
1493
{
1493
-
case (int)SNINativeMethodWrapper.SniSpecialErrors.MultiSubnetFailoverWithMoreThan64IPs:
1494
+
case SniErrors.MultiSubnetFailoverWithMoreThan64IPs:
1494
1495
// Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported.
1495
1496
SqlClientEventSource.Log.TryAdvancedTraceEvent("<sc.TdsParser.ProcessSNIError|ERR|ADV> Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported.");
1496
1497
throw SQL.MultiSubnetFailoverWithMoreThan64IPs();
1497
1498
1498
-
case (int)SNINativeMethodWrapper.SniSpecialErrors.MultiSubnetFailoverWithInstanceSpecified:
1499
+
case SniErrors.MultiSubnetFailoverWithInstanceSpecified:
1499
1500
// Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported.
1500
1501
SqlClientEventSource.Log.TryAdvancedTraceEvent("<sc.TdsParser.ProcessSNIError|ERR|ADV> Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported.");
case (int)SNINativeMethodWrapper.SniSpecialErrors.MultiSubnetFailoverWithNonTcpProtocol:
1504
+
case SniErrors.MultiSubnetFailoverWithNonTcpProtocol:
1504
1505
// Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol.
1505
1506
SqlClientEventSource.Log.TryAdvancedTraceEvent("<sc.TdsParser.ProcessSNIError|ERR|ADV> Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol.");
0 commit comments