Udostępnij przez


DbConnectionDispatcher.OpenAsync Metoda

Definicja

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

Parametry

connection
DbConnection

Połączenie, na którym zostanie wykonana operacja.

interceptionContext
DbInterceptionContext

Opcjonalne informacje o kontekście wykonywanego wywołania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zadanie reprezentujące operację asynchroniczną.

Dotyczy