次の方法で共有


RelationalLoggerExtensions.ConnectionOpenedAsync メソッド

定義

イベントの ConnectionOpened ログ。

public static System.Threading.Tasks.Task ConnectionOpenedAsync (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration, System.Threading.CancellationToken cancellationToken = default);
static member ConnectionOpenedAsync : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function ConnectionOpenedAsync (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Connection), connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As Task

パラメーター

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Connection>

使用する診断 ロガー。

connection
IRelationalConnection

接続。

startTime
DateTimeOffset

操作が開始された時刻。

duration
TimeSpan

接続が開かれるまでの時間。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

Task非同期操作を表す 。

適用対象