ExecutionStrategyEventData Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework