共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionOpeningAsync 方法

定義

ConnectionOpening事件的記錄。

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

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

cancellationToken
CancellationToken

等候 CancellationToken 工作完成時要觀察的 。

傳回

Task 表示非同步作業。

例外狀況

適用於