次の方法で共有


DbConnectionDispatcher.OpenAsync メソッド

定義

への呼び出しOpened(DbConnection, DbConnectionInterceptionContext)を行う前または後にDbInterception登録されている 任意IDbConnectionInterceptorの に と を送信Opening(DbConnection, DbConnectionInterceptionContext)しますOpen()

public virtual System.Threading.Tasks.Task OpenAsync(System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task

パラメーター

connection
DbConnection

操作が実行される接続。

interceptionContext
DbInterceptionContext

行われる呼び出しのコンテキストに関するオプションの情報。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

非同期操作を表すタスク。

適用対象