共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionClosed 方法

定義

ConnectionClosed事件的記錄。

public void ConnectionClosed (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
abstract member ConnectionClosed : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> unit
Public Sub ConnectionClosed (connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan)

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

duration
TimeSpan

連接關閉之前的時間量。

適用於