Compartilhar via


ConnectionEventData Construtores

Definição

Sobrecargas

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Constrói o conteúdo do evento.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Constrói o conteúdo do evento.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Constrói o conteúdo do evento.

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)

Parâmetros

eventDefinition
EventDefinitionBase

A definição de evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

connection
DbConnection

O DbConnection.

connectionId
Guid

Uma ID de correlação que identifica a DbConnection instância que está sendo usada.

async
Boolean

Indica se a operação está ou não ocorrendo de forma assíncrona.

startTime
DateTimeOffset

A hora de início deste evento.

Aplica-se a

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Constrói o conteúdo do evento.

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)

Parâmetros

eventDefinition
EventDefinitionBase

A definição de evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

connection
DbConnection

O DbConnection.

context
DbContext

O DbContext que está sendo usado no momento, para nulo, se não for conhecido.

connectionId
Guid

Uma ID de correlação que identifica a DbConnection instância que está sendo usada.

async
Boolean

Indica se a operação está ou não ocorrendo de forma assíncrona.

startTime
DateTimeOffset

A hora de início deste evento.

Aplica-se a