SqlAzureExecutionStrategy Class

 

An IDbExecutionStrategy that retries actions that throw exceptions caused by SQL Azure transient failures.

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

System.Object
  System.Data.Entity.Infrastructure.DbExecutionStrategy
    System.Data.Entity.SqlServer.SqlAzureExecutionStrategy

public class SqlAzureExecutionStrategy : DbExecutionStrategy

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.

NameDescription
System_CAPS_pubpropertyRetriesOnFailure

Gets a value that indicates whether DbExecutionStrategy might retry the execution after a failure.(Inherited from DbExecutionStrategy.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute(Action)

Repetitively executes the specified operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.)

System_CAPS_pubmethodExecute<TResult>(Func<TResult>)

Repetitively executes the specified operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.)

System_CAPS_pubmethodExecuteAsync(Func<Task>, CancellationToken)

Repetitively executes the specified asynchronous operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.)

System_CAPS_pubmethodExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken)

Repeatedly executes the specified asynchronous operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetNextDelay(Exception)

Determines whether the operation should be retried and the delay before the next attempt.(Inherited from DbExecutionStrategy.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodShouldRetryOn(Exception)

Determines whether the specified exception should retry on.(Overrides DbExecutionStrategy.ShouldRetryOn(Exception).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This execution strategy will retry the operation on TimeoutException and SqlException if the Errors contains any of the following error numbers: 40613, 40501, 40197, 10929, 10928, 10060, 10054, 10053, 233, 64 and 20

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.