SqlConfigurableRetryFactory.CreateIncrementalRetryProvider(SqlRetryLogicOption) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an incremental time interval retry logic provider.
public static Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider CreateIncrementalRetryProvider (Microsoft.Data.SqlClient.SqlRetryLogicOption retryLogicOption);
static member CreateIncrementalRetryProvider : Microsoft.Data.SqlClient.SqlRetryLogicOption -> Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider
Public Shared Function CreateIncrementalRetryProvider (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:
NumberOfTriesis less than 1 or bigger than 60.DeltaTimeis bigger than 120 seconds.MinTimeIntervalis bigger than 120 seconds.MaxTimeIntervalis bigger than 120 seconds.MinTimeIntervalis not less thanMaxTimeInterval.
Remarks
Note
The inner enumerator includes randomization to prevent multiple instances of the client from performing subsequent retry attempts at the same time.