Compartir a través de


ConnectionCreatedEventData Constructor

Definición

Construye la carga del evento.

public ConnectionCreatedEventData (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, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionCreatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Guid * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionCreatedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan)

Parámetros

eventDefinition
EventDefinitionBase

Definición del evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegado que genera un mensaje de registro para este evento.

context
DbContext

Que DbContext se usa actualmente, en null si no se conoce.

connectionId
Guid

Identificador de correlación que identifica la DbConnection instancia que se está usando.

startTime
DateTimeOffset

Hora de inicio de este evento.

duration
TimeSpan

Duración de este evento.

Se aplica a