ExecutionStrategyEventData 构造函数

定义

构造事件有效负载。

public ExecutionStrategyEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Collections.Generic.IReadOnlyList<Exception> exceptionsEncountered, TimeSpan delay, bool async);
new Microsoft.EntityFrameworkCore.Diagnostics.ExecutionStrategyEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Collections.Generic.IReadOnlyList<Exception> * TimeSpan * bool -> Microsoft.EntityFrameworkCore.Diagnostics.ExecutionStrategyEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), exceptionsEncountered As IReadOnlyList(Of Exception), delay As TimeSpan, async As Boolean)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

exceptionsEncountered
IReadOnlyList<Exception>

在执行操作期间捕获的异常。

delay
TimeSpan

重试操作之前的延迟。

async
Boolean

指示命令是否以异步方式执行。

适用于