Compartir a través de


ConnectionErrorEventData Constructores

Definición

Sobrecargas

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

Construye la carga del evento.

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

Construye la carga del evento.

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

Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs

Construye la carga del 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)

Parámetros

eventDefinition
EventDefinitionBase

Definición del evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegado que genera un mensaje de registro para este evento.

connectionId
Guid

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

exception
Exception

Excepción que se produjo cuando se produjo un error en la conexión.

async
Boolean

Indica si la operación se está produciendo de forma asincrónica.

startTime
DateTimeOffset

Hora de inicio de este evento.

duration
TimeSpan

Duración de este evento.

Se aplica a

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

Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs
Source:
ConnectionErrorEventData.cs

Construye la carga del 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)

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.

exception
Exception

Excepción que se produjo cuando se produjo un error en la conexión.

async
Boolean

Indica si la operación se está produciendo de forma asincrónica.

startTime
DateTimeOffset

Hora de inicio de este evento.

duration
TimeSpan

Duración de este evento.

Se aplica a