다음을 통해 공유


RelationalLoggerExtensions.ConnectionClosed 메서드

정의

이벤트에 대한 로그입니다 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)

매개 변수

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

사용할 진단 로거입니다.

connection
IRelationalConnection

연결입니다.

startTime
DateTimeOffset

작업이 시작된 시간입니다.

duration
TimeSpan

연결을 닫기 전의 시간입니다.

적용 대상