SqlAzureExecutionStrategy Constructor
Initializes a new instance of the SqlAzureExecutionStrategy class.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() | SqlAzureExecutionStrategy() | Creates a new instance of SqlAzureExecutionStrategy. |
![]() | SqlAzureExecutionStrategy(Int32, TimeSpan) | Creates a new instance of SqlAzureExecutionStrategy with the specified limits for number of retries and the delay between retries. |
SqlAzureExecutionStrategy Constructor ()
Creates a new instance of SqlAzureExecutionStrategy.
The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.
SqlAzureExecutionStrategy Constructor (Int32, TimeSpan)
Creates a new instance of SqlAzureExecutionStrategy with the specified limits for number of retries and the delay between retries.
Parameters
- maxRetryCount
-
Type:
System.Int32
The maximum number of retry attempts.
- maxDelay
-
Type:
System.TimeSpan
The maximum delay in milliseconds between retries.