Export (0) Print
Expand All

SqlWorkflowInstanceStoreBehavior Class

A service behavior that allows you to configure the SqlWorkflowInstanceStore feature, which supports persisting state information for workflow service instances into an SQL Server 2005 or SQL Server 2008 database.

System.Object
  System.ServiceModel.Activities.Description.SqlWorkflowInstanceStoreBehavior

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

public class SqlWorkflowInstanceStoreBehavior : IServiceBehavior

The SqlWorkflowInstanceStoreBehavior type exposes the following members.

  NameDescription
Public methodSqlWorkflowInstanceStoreBehavior()Initializes an instance of the SqlWorkflowInstanceStoreBehavior class.
Public methodSqlWorkflowInstanceStoreBehavior(String)Initializes an instance of the SqlWorkflowInstanceStoreBehavior class using the connection string passed as a parameter.
Top

  NameDescription
Public propertyConnectionStringGets the connection string used to connect to persistence database.
Public propertyHostLockRenewalPeriodGets or sets the HostLockRenewalPeriod. This property specifies the interval within which a host must renew its lock on an instance before the lock expires. If the host does not renew the lock in the specified time period, the instance is unlocked and another host can obtain the lock on the instance.
Public propertyInstanceCompletionActionGets or sets the InstanceCompletionAction property. This property specifies whether the instance state information is kept in the persistence database after the instance is completed.
Public propertyInstanceEncodingOptionGets or sets the InstanceEncodingOption property. This property specifies whether the instance state information is compressed using the GZip algorithm before the information is saved in the persistence store.
Public propertyInstanceLockedExceptionActionGets or sets the InstanceLockedExceptionAction property. This property specifies what action a service host should take when it receives an InstanceLockedException when the host tries to lock an instance because the instance is currently locked by another host.
Public propertyMaxConnectionRetriesGets or sets the maximum number of SQL connection retries. The default value is 4.
Public propertyRunnableInstancesDetectionPeriodGets or sets the RunnableInstancesDetectionPeriod property. Specifies the time period after which the SQL Workflow Instance Store runs a detection task to detect any runnable or activatable workflow instances in the persistence database after the previous detection cycle.
Top

  NameDescription
Public methodAddBindingParametersAn implementation of the AddBindingParameters method of the IServiceBehavior interface, which allows you to pass custom data to binding elements to support contract implementation.
Public methodApplyDispatchBehaviorAn implementation of the ApplyDispatchBehavior method of the IServiceBehavior interface that allows you to change run-time property values or insert custom extension objects such as error handlers, message or parameter inspectors, security extensions, and other custom extension objects.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPromotePromotes properties that can be used in queries. The promoted properties are the properties that you can use in queries to retrieve instances. These property can be of simple type (int32, string, bool and so on), which is represented by a variant or binary.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidateInspects the service host and the service description to confirm that the service can run successfully.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft