Share via


TransactionErrorEventData Constructors

Definition

Overloads

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, Guid, Guid, String, Exception, DateTimeOffset, TimeSpan)

Constructs the event payload.

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, String, Exception, DateTimeOffset, TimeSpan)

Constructs the event payload.

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, Guid, Guid, String, Exception, DateTimeOffset, TimeSpan)

Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs

Constructs the event payload.

public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Guid transactionId, Guid connectionId, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Guid * Guid * string * Exception * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, transactionId As Guid, connectionId As Guid, action As String, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

transaction
DbTransaction

The DbTransaction.

transactionId
Guid

A correlation ID that identifies the Entity Framework transaction being used.

connectionId
Guid

A correlation ID that identifies the DbConnection instance being used.

action
String

One of "Commit" or "Rollback".

exception
Exception

The exception that was thrown when the transaction failed.

startTime
DateTimeOffset

The start time of this event.

duration
TimeSpan

The duration this event.

Applies to

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, String, Exception, DateTimeOffset, TimeSpan)

Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs
Source:
TransactionErrorEventData.cs

Constructs the event payload.

public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext context, Guid transactionId, Guid connectionId, bool async, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext? context, Guid transactionId, Guid connectionId, bool async, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * bool * string * Exception * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, context As DbContext, transactionId As Guid, connectionId As Guid, async As Boolean, action As String, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

transaction
DbTransaction

The DbTransaction.

context
DbContext

The DbContext currently being used, or null if not known.

transactionId
Guid

A correlation ID that identifies the Entity Framework transaction being used.

connectionId
Guid

A correlation ID that identifies the DbConnection instance being used.

async
Boolean

Indicates whether or not the transaction is being used asynchronously.

action
String

One of "Commit" or "Rollback".

exception
Exception

The exception that was thrown when the transaction failed.

startTime
DateTimeOffset

The start time of this event.

duration
TimeSpan

The duration this event.

Applies to