다음을 통해 공유


DbCommandInterceptor.CommandCanceledAsync 메서드

정의

명령이 취소되었을 때 호출됩니다.

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

매개 변수

command
DbCommand

명령입니다.

eventData
CommandEndEventData

명령 및 실행에 대한 컨텍스트 정보입니다.

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

비동기 작업을 나타내는 Task입니다.

구현

적용 대상