mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Removed unnecessary IErrorDetectionStrategy (#749)
This commit is contained in:
committed by
Karl Burtram
parent
d5fd968b3c
commit
87e8eb9ef6
@@ -14,7 +14,7 @@ namespace Microsoft.SqlTools.CoreServices.Connection.ReliableConnection
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the error detection logic for temporary faults that are commonly found during data transfer.
|
/// Provides the error detection logic for temporary faults that are commonly found during data transfer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class DataTransferErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal class DataTransferErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static readonly DataTransferErrorDetectionStrategy instance = new DataTransferErrorDetectionStrategy();
|
private static readonly DataTransferErrorDetectionStrategy instance = new DataTransferErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Microsoft.SqlTools.CoreServices.Connection.ReliableConnection
|
|||||||
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
||||||
/// The same errors CAN occur on premise also, but they are not seen as often.
|
/// The same errors CAN occur on premise also, but they are not seen as often.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class NetworkConnectivityErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal sealed class NetworkConnectivityErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static NetworkConnectivityErrorDetectionStrategy instance = new NetworkConnectivityErrorDetectionStrategy();
|
private static NetworkConnectivityErrorDetectionStrategy instance = new NetworkConnectivityErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Microsoft.SqlTools.CoreServices.Connection.ReliableConnection
|
|||||||
/// want to consider this as passing since the first execution that has timed out (or failed for some other temporary error)
|
/// want to consider this as passing since the first execution that has timed out (or failed for some other temporary error)
|
||||||
/// might have managed to create the object.
|
/// might have managed to create the object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class SqlAzureTemporaryAndIgnorableErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal class SqlAzureTemporaryAndIgnorableErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Azure error that can be ignored
|
/// Azure error that can be ignored
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Microsoft.SqlTools.CoreServices.Connection.ReliableConnection
|
|||||||
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
||||||
/// The same errors CAN occur on premise also, but they are not seen as often.
|
/// The same errors CAN occur on premise also, but they are not seen as often.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class SqlAzureTemporaryErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal sealed class SqlAzureTemporaryErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static SqlAzureTemporaryErrorDetectionStrategy instance = new SqlAzureTemporaryErrorDetectionStrategy();
|
private static SqlAzureTemporaryErrorDetectionStrategy instance = new SqlAzureTemporaryErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the error detection logic for temporary faults that are commonly found during data transfer.
|
/// Provides the error detection logic for temporary faults that are commonly found during data transfer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class DataTransferErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal class DataTransferErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static readonly DataTransferErrorDetectionStrategy instance = new DataTransferErrorDetectionStrategy();
|
private static readonly DataTransferErrorDetectionStrategy instance = new DataTransferErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection
|
|||||||
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
||||||
/// The same errors CAN occur on premise also, but they are not seen as often.
|
/// The same errors CAN occur on premise also, but they are not seen as often.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class NetworkConnectivityErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal sealed class NetworkConnectivityErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static NetworkConnectivityErrorDetectionStrategy instance = new NetworkConnectivityErrorDetectionStrategy();
|
private static NetworkConnectivityErrorDetectionStrategy instance = new NetworkConnectivityErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection
|
|||||||
/// want to consider this as passing since the first execution that has timed out (or failed for some other temporary error)
|
/// want to consider this as passing since the first execution that has timed out (or failed for some other temporary error)
|
||||||
/// might have managed to create the object.
|
/// might have managed to create the object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class SqlAzureTemporaryAndIgnorableErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal class SqlAzureTemporaryAndIgnorableErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Azure error that can be ignored
|
/// Azure error that can be ignored
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection
|
|||||||
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
/// Provides the error detection logic for temporary faults that are commonly found in SQL Azure.
|
||||||
/// The same errors CAN occur on premise also, but they are not seen as often.
|
/// The same errors CAN occur on premise also, but they are not seen as often.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class SqlAzureTemporaryErrorDetectionStrategy : ErrorDetectionStrategyBase, IErrorDetectionStrategy
|
internal sealed class SqlAzureTemporaryErrorDetectionStrategy : ErrorDetectionStrategyBase
|
||||||
{
|
{
|
||||||
private static SqlAzureTemporaryErrorDetectionStrategy instance = new SqlAzureTemporaryErrorDetectionStrategy();
|
private static SqlAzureTemporaryErrorDetectionStrategy instance = new SqlAzureTemporaryErrorDetectionStrategy();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user