Dil

IRelationalCommandDiagnosticsLogger.CommandCanceledAsync Yöntem

Tanım

Aşırı Yüklemeler

CommandCanceledAsync(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs

Olay için CommandCanceled günlükler.

public System.Threading.Tasks.Task CommandCanceledAsync(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, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandCanceledAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CommandCanceledAsync (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, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

executeMethod
DbCommandMethod

komutunu yürütmek için çağrılacak yöntemi temsil eder.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılan ile ilişkili bağıntı DbConnection kimliği.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Özel durum yükseltilene kadar geçen süre.

commandSource
CommandSource

Komutun kaynağı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Task Zaman uyumsuz işlemi temsil eden bir.

Özel durumlar

Şunlara uygulanır

CommandCanceledAsync(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs

Olay için CommandCanceled günlükler.

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

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

logCommandText
String

Günlüğe kaydedilebilen komut metni.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

executeMethod
DbCommandMethod

komutunu yürütmek için çağrılacak yöntemi temsil eder.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılan ile ilişkili bağıntı DbConnection kimliği.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Komut iptal edilene kadar geçen süre.

commandSource
CommandSource

Komutun kaynağı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Task Zaman uyumsuz işlemi temsil eden bir.

Özel durumlar

Şunlara uygulanır