Editar

Compartir a través de


WorkflowIdleBehavior Class

Definition

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
Inheritance
WorkflowIdleBehavior
Implements

Remarks

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

Constructors

WorkflowIdleBehavior()

Initializes a new instance of the WorkflowIdleBehavior.

Properties

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.

Methods

AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

Implements the AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) method.

ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

Implements the ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) method.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(ServiceDescription, ServiceHostBase)

Implements the Validate(ServiceDescription, ServiceHostBase) method.

Applies to