ConnectionEventData Constructors
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.
Overloads
ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
Constructs the event payload.
public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, connectionId As Guid, async As Boolean, startTime As DateTimeOffset)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- connection
- DbConnection
The DbConnection.
- connectionId
- Guid
A correlation ID that identifies the DbConnection instance being used.
- async
- Boolean
Indicates whether or not the operation is happening asynchronously.
- startTime
- DateTimeOffset
The start time of this event.
Applies to
ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
- Source:
- ConnectionEventData.cs
Constructs the event payload.
public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext context, Guid connectionId, bool async, DateTimeOffset startTime);
public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext? context, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, connectionId As Guid, async As Boolean, startTime As DateTimeOffset)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- connection
- DbConnection
The DbConnection.
- connectionId
- Guid
A correlation ID that identifies the DbConnection instance being used.
- async
- Boolean
Indicates whether or not the operation is happening asynchronously.
- startTime
- DateTimeOffset
The start time of this event.
Applies to
Entity Framework