SqlAzureExecutionStrategy Class
An IDbExecutionStrategy that retries actions that throw exceptions caused by SQL Azure transient failures.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
System.Data.Entity.Infrastructure.DbExecutionStrategy
System.Data.Entity.SqlServer.SqlAzureExecutionStrategy
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. |
Name | Description | |
---|---|---|
![]() | RetriesOnFailure | Gets a value that indicates whether DbExecutionStrategy might retry the execution after a failure.(Inherited from DbExecutionStrategy.) |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Execute(Action) | Repetitively executes the specified operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.) |
![]() | Execute<TResult>(Func<TResult>) | Repetitively executes the specified operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.) |
![]() | ExecuteAsync(Func<Task>, CancellationToken) | Repetitively executes the specified asynchronous operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.) |
![]() | ExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken) | Repeatedly executes the specified asynchronous operation while it satisfies the current retry policy.(Inherited from DbExecutionStrategy.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetNextDelay(Exception) | Determines whether the operation should be retried and the delay before the next attempt.(Inherited from DbExecutionStrategy.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ShouldRetryOn(Exception) | Determines whether the specified exception should retry on.(Overrides DbExecutionStrategy.ShouldRetryOn(Exception).) |
![]() | ToString() | (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.