ConnectionErrorEventData Costruttori

Definizione

Overload

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

Costruisce il payload dell'evento.

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

Costruisce il payload dell'evento.

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

Costruisce il payload dell'evento.

public ConnectionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Guid connectionId, Exception exception, bool async, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Guid * Exception * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, connectionId As Guid, exception As Exception, async As Boolean, startTime As DateTimeOffset, duration As TimeSpan)

Parametri

eventDefinition
EventDefinitionBase

Definizione dell'evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegato che genera un messaggio di log per questo evento.

connection
DbConnection

Oggetto DbConnection.

connectionId
Guid

ID di correlazione che identifica l'istanza DbConnection usata.

exception
Exception

Eccezione generata quando la connessione non è riuscita.

async
Boolean

Indica se l'operazione viene eseguita in modo asincrono.

startTime
DateTimeOffset

Ora di inizio di questo evento.

duration
TimeSpan

Durata dell'evento.

Si applica a

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

Costruisce il payload dell'evento.

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

Parametri

eventDefinition
EventDefinitionBase

Definizione dell'evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegato che genera un messaggio di log per questo evento.

connection
DbConnection

Oggetto DbConnection.

context
DbContext

Oggetto DbContext attualmente usato, per null se non noto.

connectionId
Guid

ID di correlazione che identifica l'istanza DbConnection usata.

exception
Exception

Eccezione generata quando la connessione non è riuscita.

async
Boolean

Indica se l'operazione viene eseguita in modo asincrono.

startTime
DateTimeOffset

Ora di inizio di questo evento.

duration
TimeSpan

Durata dell'evento.

Si applica a