WorkflowIdleBehavior Class
A service behavior that controls when idle workflow instances are unloaded and persisted.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
| Name | Description | |
|---|---|---|
![]() | WorkflowIdleBehavior() | Initializes a new instance of the WorkflowIdleBehavior. |
| Name | Description | |
|---|---|---|
![]() | TimeToPersist | Gets or sets a value that specifies the TimeSpan that occurs between the time the workflow becomes idle and is persisted. |
![]() | TimeToUnload | Gets or sets a value that specifies the TimeSpan that occurs between the time workflow becomes idle and is unloaded. |
| Name | Description | |
|---|---|---|
![]() | AddBindingParameters(ServiceDescription^, ServiceHostBase^, Collection<ServiceEndpoint^>^, BindingParameterCollection^) | Implements the IServiceBehavior::AddBindingParameters method. |
![]() | ApplyDispatchBehavior(ServiceDescription^, ServiceHostBase^) | Implements the IServiceBehavior::ApplyDispatchBehavior method. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Validate(ServiceDescription^, ServiceHostBase^) | Implements the IServiceBehavior::Validate method. |
Important |
|---|
When TimeToUnload is set to a value greater than the value of TimeToPersist and the workflow then goes idle (because of a Delay activity) if the workflow instance has not changed it will be removed from memory by calling Abort, rather than going through the normal unloading process.. This is a runtime optimization and no data is lost, but a developer looking at trace log may see an Abort trace when expecting an Unload trace. |
For an example of how to use this behavior see Workflow Service Host Extensibility
Available since 4.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



