Share via


DbCommandInterceptor.CommandCanceledAsync Método

Definición

Se le llama cuando se canceló un comando.

public virtual System.Threading.Tasks.Task CommandCanceledAsync (System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData eventData, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandCanceledAsync : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CommandCanceledAsync : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CommandCanceledAsync (command As DbCommand, eventData As CommandEndEventData, Optional cancellationToken As CancellationToken = Nothing) As Task

Parámetros

command
DbCommand

El comando.

eventData
CommandEndEventData

Información contextual sobre el comando y la ejecución.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Tarea Task que representa la operación asincrónica.

Implementaciones

Se aplica a