共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionClosingAsync 方法

定義

ConnectionClosing事件的記錄。

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> ConnectionClosingAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime);
abstract member ConnectionClosingAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
Public Function ConnectionClosingAsync (connection As IRelationalConnection, startTime As DateTimeOffset) As ValueTask(Of InterceptionResult)

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

傳回

Task 表示非同步作業。

適用於