ExecutionStrategyEventData Constructor

Definition

Constructs the event payload.

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)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

exceptionsEncountered
IReadOnlyList<Exception>

The exceptions that have been caught during the execution of an operation.

delay
TimeSpan

The delay before retrying the operation.

async
Boolean

Indicates whether or not the command was executed asynchronously.

Applies to