WorkflowApplication.PersistableIdle 속성

정의

현재 워크플로 인스턴스가 유휴 상태가 될 때 호출되고 지속될 수 있는 대리자를 가져오거나 설정합니다.

public:
 property Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ PersistableIdle { Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ get(); void set(Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ value); };
public Func<System.Activities.WorkflowApplicationIdleEventArgs,System.Activities.PersistableIdleAction> PersistableIdle { get; set; }
member this.PersistableIdle : Func<System.Activities.WorkflowApplicationIdleEventArgs, System.Activities.PersistableIdleAction> with get, set
Public Property PersistableIdle As Func(Of WorkflowApplicationIdleEventArgs, PersistableIdleAction)

속성 값

현재 워크플로 instance 유휴 상태이고 유지할 수 있을 때 호출되는 대리자입니다.

예제

다음 예제에서는 PersistableIdle 처리기를 처리하고 워크플로를 유지 및 언로드하도록 런타임에 지시합니다.

wfApp.PersistableIdle = delegate(WorkflowApplicationIdleEventArgs e)
{
    // Instruct the runtime to persist and unload the workflow
    return PersistableIdleAction.Unload;
};

설명

워크플로가 유휴 상태가 되어 유지될 수 있는 경우 및 PersistableIdle 는 모두 Idle 해당 순서로 호출됩니다. 처리기는 PersistableIdle , Persist또는 UnloadPersistableIdleAction 열거형 값 None중 하나를 반환합니다.

적용 대상