Export (0) Print
Expand All

WorkflowIdleBehavior.TimeToPersist Property

Gets or sets a value that specifies the TimeSpan that occurs between the time the workflow becomes idle and is persisted.

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

public TimeSpan TimeToPersist { get; set; }

Property Value

Type: System.TimeSpan
The time span used to determine when a workflow is persisted.

The TimeSpan begins to elapse when the workflow instance becomes idle. This property is useful if you want to persist a workflow instance more aggressively while still keeping the instance in memory for as long as possible. The default value for this property is MaxValue(). The TimeToPersist property is only valid if its value is less than TimeToUnload. If it is greater, it is ignored. If the TimeSpan specified by TimeToPersist elapses before the TimeSpan specified by TimeToUnload, persistence must complete before the workflow is unloaded. This implies that the unload operation may be delayed until the workflow is persisted. The persistence layer is responsible for handling any retries for transient errors and only throws exceptions on non-recoverable errors. Therefore, any exceptions thrown during persistence are treated as fatal and the workflow instance is aborted.

.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:
© 2014 Microsoft