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 异步操作的 。

例外

适用于