IRelationalCommandDiagnosticsLogger.CommandCanceledAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
CommandCanceledAsync(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)
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.
- executeMethod
- DbCommandMethod
komutunu yürütmek için çağrılacak yöntemi temsil eder.
- 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
CancellationToken İptal edilirse.
Şunlara uygulanır
CommandCanceledAsync(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)
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.
- executeMethod
- DbCommandMethod
komutunu yürütmek için çağrılacak yöntemi temsil eder.
- 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
CancellationToken İptal edilirse.