SqlAzureExecutionStrategy Constructor

 

Initializes a new instance of the SqlAzureExecutionStrategy class.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodSqlAzureExecutionStrategy()

Creates a new instance of SqlAzureExecutionStrategy.

System_CAPS_pubmethodSqlAzureExecutionStrategy(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.

public 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.

public SqlAzureExecutionStrategy(
	int maxRetryCount,
	TimeSpan maxDelay
)

Parameters

maxRetryCount
Type: System.Int32

The maximum number of retry attempts.

maxDelay
Type: System.TimeSpan

The maximum delay in milliseconds between retries.