Freigeben über


RelationalLoggerExtensions.ConnectionClosed Methode

Definition

Protokolle für das ConnectionClosed Ereignis.

public static void ConnectionClosed (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
static member ConnectionClosed : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> unit
<Extension()>
Public Sub ConnectionClosed (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Connection), connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan)

Parameter

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

Die zu verwendende Diagnose-Protokollierung.

connection
IRelationalConnection

Die Verbindung.

startTime
DateTimeOffset

Die Uhrzeit, zu der der Vorgang gestartet wurde.

duration
TimeSpan

Die Zeitspanne, bis die Verbindung geschlossen wurde.

Gilt für: