WorkflowIdleBehavior.TimeToUnload Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public TimeSpan TimeToUnload { get; set; }

Property Value

Type: System.TimeSpan

The time span used to determine when a workflow is unloaded.

The default value is 1 minute. Unloading a workflow implies that it is also persisted. If TimeToUnload is set to zero the workflow instance is persisted and unloaded immediately after the workflow becomes idle. Setting TimeToUnload to MaxValue effectively disables the unload operation. Idle workflow instances are never unloaded.

.NET Framework
Available since 4.0
Return to top