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

连接关闭前的时间量。

适用于