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

接続が閉じられるまでにかかる時間。

適用対象