WorkflowIdleBehavior Class

WorkflowIdleBehavior Class

.NET Framework (current version)
 

A service behavior that controls when idle workflow instances are unloaded and persisted.

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

System.Object
  System.ServiceModel.Activities.Description.WorkflowIdleBehavior

public class WorkflowIdleBehavior : IServiceBehavior

NameDescription
System_CAPS_pubmethodWorkflowIdleBehavior()

Initializes a new instance of the WorkflowIdleBehavior.

NameDescription
System_CAPS_pubpropertyTimeToPersist

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

System_CAPS_pubpropertyTimeToUnload

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

NameDescription
System_CAPS_pubmethodAddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)
System_CAPS_pubmethodApplyDispatchBehavior(ServiceDescription, ServiceHostBase)
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodValidate(ServiceDescription, ServiceHostBase)

Implements the IServiceBehavior.Validate method.

System_CAPS_importantImportant

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

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft