SaveChangesInterceptor.SaveChangesCanceledAsync 方法

定义

取消时 DbContext.SaveChangesAsync 调用。

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

参数

eventData
DbContextEventData

有关失败的上下文信息。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

返回

表示异步操作的 Task

实现

适用于