Partager via


RelationalLoggerExtensions.ConnectionOpened Méthode

Définition

Journaux de l’événement ConnectionOpened .

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

Paramètres

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

Enregistreur d’diagnostics à utiliser.

connection
IRelationalConnection

Connexion.

startTime
DateTimeOffset

Heure de démarrage de l’opération.

duration
TimeSpan

La durée avant l’ouverture de la connexion.

S’applique à