InstancePersistenceContext.SetCancellationHandler 메서드

정의

작업 취소가 요청될 때 호출할 취소 처리기를 설정합니다.

public:
 void SetCancellationHandler(Action<System::Runtime::DurableInstancing::InstancePersistenceContext ^> ^ cancellationHandler);
public void SetCancellationHandler(Action<System.Runtime.DurableInstancing.InstancePersistenceContext> cancellationHandler);
member this.SetCancellationHandler : Action<System.Runtime.DurableInstancing.InstancePersistenceContext> -> unit
Public Sub SetCancellationHandler (cancellationHandler As Action(Of InstancePersistenceContext))

매개 변수

cancellationHandler
Action<InstancePersistenceContext>

호출할 함수에 대한 참조입니다.

설명

취소 처리기가 호출되면 지속성 공급자는 보류 중인 모든 작업을 취소하고 TryCommand에서 OperationCanceledException을 throw하여 지속성 명령이 완료되기 전에 중단되었음을 나타내야 합니다.

적용 대상