CoreLoggerExtensions.ExecutionStrategyRetrying 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
指示执行是否为异步。