ConnectionErrorEventData 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
ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)
- Source:
- ConnectionErrorEventData.cs
- Source:
- ConnectionErrorEventData.cs
Constructs the event payload.
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)
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.
- exception
- Exception
The exception that was thrown when the connection failed.
- async
- Boolean
Indicates whether or not the operation is happening asynchronously.
- startTime
- DateTimeOffset
The start time of this event.
- duration
- TimeSpan
The duration this event.
Applies to
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
Constructs the event payload.
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)
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.
- exception
- Exception
The exception that was thrown when the connection failed.
- async
- Boolean
Indicates whether or not the operation is happening asynchronously.
- startTime
- DateTimeOffset
The start time of this event.
- duration
- TimeSpan
The duration this event.
Applies to
Entity Framework