共用方式為


CoreLoggerExtensions.ExecutionStrategyRetrying 方法

定義

ExecutionStrategyRetrying事件的記錄。

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)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

要使用的診斷記錄器。

exceptionsEncountered
IReadOnlyList<Exception>

造成失敗的例外狀況 () 。

delay
TimeSpan

下一次重試之前的延遲。

async
Boolean

指出執行是否為非同步。

適用於