Sprache

DbCommandDispatcher.ReaderAsync Methode

Definition

public virtual System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ReaderAsync(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member ReaderAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>
override this.ReaderAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>

Parameter

command
DbCommand

Der Befehl, auf dem der Vorgang ausgeführt wird.

interceptionContext
DbCommandInterceptionContext

Optionale Informationen zum Kontext des getätigten Anrufs.

cancellationToken
CancellationToken

Das Abbruchtoken für den asynchronen Vorgang.

Gibt zurück

Das Ergebnis des Vorgangs, der möglicherweise von Interceptors geändert wurde.

Hinweise

Beachten Sie, dass das Ergebnis der Ausführung des Befehls von dieser Methode zurückgegeben wird. Das Ergebnis ist im an diese Methode übergebenen Abfangenkontext nicht verfügbar, da der Abfangenkontext geklont wird, bevor er an Interceptors übergeben wird.

Gilt für: