Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WorkflowApplication.PersistableIdle Property

Gets or sets the ActivityFunc that is invoked when the current workflow instance is idle and can be persisted.

Namespace:  System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public Func<WorkflowApplicationIdleEventArgs, PersistableIdleAction> PersistableIdle { get; set; }

Property Value

Type: System.Func<WorkflowApplicationIdleEventArgs, PersistableIdleAction>
The ActivityFunc that is invoked when the current workflow instance is idle and can be persisted.

When a workflow becomes idle and can be persisted, both Idle and PersistableIdle are invoked, in that order. The PersistableIdle handler returns one of the PersistableIdleAction enumeration values of None, Persist, or Unload.

The following example handles the PersistableIdle handler and instructs the runtime to persist and unload the workflow.


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


.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft