Idle Behavior Class
A service behavior that controls when idle workflow instances are unloaded and persisted.
public ref class WorkflowIdleBehavior : System::ServiceModel::Description::IServiceBehavior
public class WorkflowIdleBehavior : System.ServiceModel.Description.IServiceBehavior
type WorkflowIdleBehavior = class interface IServiceBehavior
Public Class WorkflowIdleBehavior Implements IServiceBehavior
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
Initializes a new instance of the WorkflowIdleBehavior.
Gets or sets a value that specifies the TimeSpan that occurs between the time the workflow becomes idle and is persisted.
Gets or sets a value that specifies the TimeSpan that occurs between the time workflow becomes idle and is unloaded.
|AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)|
Implements the ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) method.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)
Implements the Validate(ServiceDescription, ServiceHostBase) method.