Partager via


RelationalLoggerExtensions.ConnectionClosed Méthode

Définition

Journaux de l’événement ConnectionClosed .

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)

Paramètres

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

Journal diagnostics à utiliser.

connection
IRelationalConnection

Connexion.

startTime
DateTimeOffset

Heure à laquelle l’opération a été démarrée.

duration
TimeSpan

Durée avant la fermeture de la connexion.

S’applique à