Compartir a través de


CoreLoggerExtensions.ExecutionStrategyRetrying Método

Definición

Registra el ExecutionStrategyRetrying evento.

public static void ExecutionStrategyRetrying (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, System.Collections.Generic.IReadOnlyList<Exception> exceptionsEncountered, TimeSpan delay, bool async);
static member ExecutionStrategyRetrying : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * System.Collections.Generic.IReadOnlyList<Exception> * TimeSpan * bool -> unit
<Extension()>
Public Sub ExecutionStrategyRetrying (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), exceptionsEncountered As IReadOnlyList(Of Exception), delay As TimeSpan, async As Boolean)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

Registrador de diagnóstico que se va a usar.

exceptionsEncountered
IReadOnlyList<Exception>

Excepciones que provocaron el error.

delay
TimeSpan

Retraso que antes del siguiente reintento.

async
Boolean

Indica si la ejecución es asincrónica o no.

Se aplica a