共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionDisposedAsync 方法

定義

ConnectionDisposed事件的記錄。

public System.Threading.Tasks.Task ConnectionDisposedAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
abstract member ConnectionDisposedAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> System.Threading.Tasks.Task
Public Function ConnectionDisposedAsync (connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan) As Task

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

duration
TimeSpan

處置連線所花費的時間量。

傳回

Task 表示非同步作業。

適用於