Share via


DbConnectionDispatcher.OpenAsync Method

Definition

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

Parameters

connection
DbConnection

The connection on which the operation will be executed.

interceptionContext
DbInterceptionContext

Optional information about the context of the call being made.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the asynchronous operation.

Applies to