IRelationalCommandDiagnosticsLogger.CommandCanceled Método

Definição

Logs do CommandCanceled evento.

public void CommandCanceled (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandCanceled : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> unit
Public Sub CommandCanceled (connection As IRelationalConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)

Parâmetros

connection
IRelationalConnection

A conexão.

command
DbCommand

O objeto de comando do banco de dados.

context
DbContext

O DbContext que está sendo usado no momento, para nulo, se não for conhecido.

executeMethod
DbCommandMethod

Representa o método que será chamado para executar o comando.

commandId
Guid

A ID de correlação associada ao determinado DbCommand.

connectionId
Guid

A ID de correlação associada ao DbConnection que está sendo usado.

startTime
DateTimeOffset

A hora em que a execução começou.

duration
TimeSpan

A quantidade de tempo que passou até que a exceção fosse gerada.

commandSource
CommandSource

Origem do comando.

Aplica-se a