Lingua

IRelationalCommandDiagnosticsLogger.CommandReaderExecutedAsync Metodo

Definizione

Overload

CommandReaderExecutedAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Origine:
IRelationalCommandDiagnosticsLogger.cs
Origine:
IRelationalCommandDiagnosticsLogger.cs
Origine:
IRelationalCommandDiagnosticsLogger.cs
Origine:
IRelationalCommandDiagnosticsLogger.cs

Registra l'evento CommandExecuted .

public System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader> CommandReaderExecutedAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandReaderExecutedAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader>
Public Function CommandReaderExecutedAsync (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of DbDataReader)

Parametri

connection
IRelationalConnection

Connessione.

command
DbCommand

Oggetto comando di database.

context
DbContext

Oggetto DbContext attualmente in uso, per null se non noto.

commandId
Guid

ID di correlazione associato all'oggetto specificato DbCommand.

connectionId
Guid

ID di correlazione associato all'oggetto DbConnection utilizzato.

methodResult
DbDataReader

Valore restituito dall'esecuzione del metodo sottostante.

startTime
DateTimeOffset

Ora di inizio dell'esecuzione.

duration
TimeSpan

Durata dell'esecuzione del comando, senza includere l'utilizzo dei risultati.

commandSource
CommandSource

Origine del comando.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Valori restituiti

Risultato dell'esecuzione, che può essere stato modificato da un intercettore.

Eccezioni

Se l'oggetto CancellationToken viene annullato.

Si applica a

CommandReaderExecutedAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Origine:
IRelationalCommandDiagnosticsLogger.cs
Origine:
IRelationalCommandDiagnosticsLogger.cs

Registra l'evento CommandExecuted .

public System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader> CommandReaderExecutedAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandReaderExecutedAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader>
Public Function CommandReaderExecutedAsync (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of DbDataReader)

Parametri

connection
IRelationalConnection

Connessione.

command
DbCommand

Oggetto comando di database.

logCommandText
String

Testo del comando che può essere registrato.

context
DbContext

Oggetto DbContext attualmente in uso, per null se non noto.

commandId
Guid

ID di correlazione associato all'oggetto specificato DbCommand.

connectionId
Guid

ID di correlazione associato all'oggetto DbConnection utilizzato.

methodResult
DbDataReader

Valore restituito dall'esecuzione del metodo sottostante.

startTime
DateTimeOffset

Ora di inizio dell'esecuzione.

duration
TimeSpan

Durata dell'esecuzione del comando, senza includere l'utilizzo dei risultati.

commandSource
CommandSource

Origine del comando.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Valori restituiti

Risultato dell'esecuzione, che può essere stato modificato da un intercettore.

Eccezioni

Se l'oggetto CancellationToken viene annullato.

Si applica a