IRelationalConnectionDiagnosticsLogger.ConnectionDisposed 方法

定义

ConnectionDisposed事件的日志。

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

参数

connection
IRelationalConnection

连接。

startTime
DateTimeOffset

开始操作的时间。

duration
TimeSpan

释放连接所花费的时间量。

适用于