다음을 통해 공유


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하여 지속성 명령이 완료되기 전에 중단되었음을 나타내야 합니다.

적용 대상