SqlRetryLogicOption Class

Definition

Provides the retry logic parameters to create an instance of the SqlRetryLogicBaseProvider class by using SqlConfigurableRetryFactory methods.

C#
[System.Serializable]
public sealed class SqlRetryLogicOption
C#
public sealed class SqlRetryLogicOption
Inheritance
SqlRetryLogicOption
Attributes

Constructors

Properties

AuthorizedSqlCondition

Sets a pre-retry validation function on the CommandText to only include specific SQL statements.

DeltaTime

Sets the gap time interval as a TimeSpan object.

MaxTimeInterval

Sets the allowed maximum gap time interval as a TimeSpan object.

MinTimeInterval

Sets the minimum allowed gap time interval as a TimeSpan object.

NumberOfTries

Sets the number of times to try and execute the function.

TransientErrors

Sets the list of transient error numbers on which to retry when they occur.

Applies to

Product Versions
SqlClient .NET Core 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2