A service behavior that controls when idle workflow instances are unloaded and persisted.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
|AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)|
Implements the IServiceBehavior.AddBindingParameters method.
Implements the IServiceBehavior.ApplyDispatchBehavior method.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Implements the IServiceBehavior.Validate method.
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.