Class ExecutionStrategyEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.dll
The DiagnosticSource event payload for CoreEventId execution strategy events.
public class ExecutionStrategyEventData : EventData
- Inheritance
-
ExecutionStrategyEventData
- Inherited Members
Remarks
See Logging, events, and diagnostics for more information and examples.
Constructors
ExecutionStrategyEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IReadOnlyList<Exception>, TimeSpan, bool)
Constructs the event payload.
public ExecutionStrategyEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IReadOnlyList<Exception> exceptionsEncountered, TimeSpan delay, bool async)
Parameters
eventDefinition
EventDefinitionBaseThe 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
TimeSpanThe delay before retrying the operation.
async
boolIndicates whether or not the command was executed asynchronously.
Properties
Delay
The delay before retrying the operation.
public virtual TimeSpan Delay { get; }
Property Value
ExceptionsEncountered
A correlation ID that identifies the System.Data.Common.DbConnection instance being used.
public virtual IReadOnlyList<Exception> ExceptionsEncountered { get; }
Property Value
IsAsync
Indicates whether or not the operation is being executed asynchronously.
public virtual bool IsAsync { get; }