Partilhar via


RelationalLoggerExtensions.ConnectionClosed Método

Definição

Logs do ConnectionClosed evento.

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)

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

O agente diagnóstico a ser usado.

connection
IRelationalConnection

A conexão.

startTime
DateTimeOffset

A hora em que a operação foi iniciada.

duration
TimeSpan

A quantidade de tempo antes da conexão ser fechada.

Aplica-se a