Dela via


SqlConfigurableRetryFactory.CreateFixedRetryProvider Method

Definition

Provides a fixed interval time retry logic provider.

public:
 static Microsoft::Data::SqlClient::SqlRetryLogicBaseProvider ^ CreateFixedRetryProvider(Microsoft::Data::SqlClient::SqlRetryLogicOption ^ retryLogicOption);
public static Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider CreateFixedRetryProvider (Microsoft.Data.SqlClient.SqlRetryLogicOption retryLogicOption);
static member CreateFixedRetryProvider : Microsoft.Data.SqlClient.SqlRetryLogicOption -> Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider
Public Shared Function CreateFixedRetryProvider (retryLogicOption As SqlRetryLogicOption) As SqlRetryLogicBaseProvider

Parameters

retryLogicOption
SqlRetryLogicOption

An object of SqlRetryLogicOption containing the configuration for the object.

Returns

A SqlRetryLogicBaseProvider object.

Exceptions

If the retryLogicOption parameter was null.

If at least one of the following conditions occurs:

  • NumberOfTries is less than 1 or bigger than 60.
  • DeltaTime is bigger than 120 seconds.
  • MinTimeInterval is bigger than 120 seconds.
  • MaxTimeInterval is bigger than 120 seconds.
  • MinTimeInterval is not less than MaxTimeInterval.

Remarks

Note

The inner enumerator includes randomization to prevent multiple instances of the client from performing subsequent retry attempts at the same time.

Applies to