DbConnectionDispatcher.OpenAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Invia Opening(DbConnection, DbConnectionInterceptionContext) e Opened(DbConnection, DbConnectionInterceptionContext) a qualsiasi IDbConnectionInterceptor registrato in DbInterception prima/dopo aver effettuato una chiamata a 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
Parametri
- connection
- DbConnection
Connessione in cui verrà eseguita l'operazione.
- interceptionContext
- DbInterceptionContext
Informazioni facoltative sul contesto della chiamata effettuata.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Attività che rappresenta l'operazione asincrona.