Compartir a través de


IRetryPolicy.ShouldRetryAsync(Exception, OperationContext) Método

Definición

Determina si la operación se debe reintentar y cuánto tiempo se debe esperar hasta el siguiente reintento.

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.Common.RetryDecision> ShouldRetryAsync (Exception exception, Microsoft.Azure.Batch.Common.OperationContext operationContext);
abstract member ShouldRetryAsync : Exception * Microsoft.Azure.Batch.Common.OperationContext -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Common.RetryDecision>
Public Function ShouldRetryAsync (exception As Exception, operationContext As OperationContext) As Task(Of RetryDecision)

Parámetros

exception
Exception

Un objeto Exception que representa la última excepción encontrada.

operationContext
OperationContext

Un objeto OperationContext para realizar un seguimiento de la operación actual.

Devoluciones

Objeto RetryDecision que especifica si se debe realizar un reintento.

Se aplica a