SqlWorkflowInstanceStoreBehavior 类
定义
一种服务行为,它允许您配置 SqlWorkflowInstanceStore 功能,该功能支持将工作流服务实例的状态信息保持到 SQL Server 2005 或 SQL Server 2008 数据库中。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.
public ref class SqlWorkflowInstanceStoreBehavior : System::ServiceModel::Description::IServiceBehavior
public class SqlWorkflowInstanceStoreBehavior : System.ServiceModel.Description.IServiceBehavior
type SqlWorkflowInstanceStoreBehavior = class
interface IServiceBehavior
Public Class SqlWorkflowInstanceStoreBehavior
Implements IServiceBehavior
- 继承
-
SqlWorkflowInstanceStoreBehavior
- 实现
构造函数
| SqlWorkflowInstanceStoreBehavior() |
初始化 SqlWorkflowInstanceStoreBehavior 类的实例。Initializes an instance of the SqlWorkflowInstanceStoreBehavior class. |
| SqlWorkflowInstanceStoreBehavior(String) |
使用作为参数传递的连接字符串初始化 SqlWorkflowInstanceStoreBehavior 类的实例。Initializes an instance of the SqlWorkflowInstanceStoreBehavior class using the connection string passed as a parameter. |
属性
| ConnectionString |
获取用于与永久性数据库建立连接的连接字符串。Gets the connection string used to connect to persistence database. |
| HostLockRenewalPeriod |
获取或设置 HostLockRenewalPeriod。Gets 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. |
| InstanceCompletionAction |
获取或设置 InstanceCompletionAction 属性。Gets or sets the InstanceCompletionAction property. 此属性指定在实例完成之后,是否在永久性数据库中保留实例状态信息。This property specifies whether the instance state information is kept in the persistence database after the instance is completed. |
| InstanceEncodingOption |
获取或设置 InstanceEncodingOption 属性。Gets or sets the InstanceEncodingOption property. 此属性指定在将实例状态信息保存到永久性存储之前,是否使用 GZip 算法压缩此信息。This property specifies whether the instance state information is compressed using the GZip algorithm before the information is saved in the persistence store. |
| InstanceLockedExceptionAction |
获取或设置 InstanceLockedExceptionAction 属性。Gets or sets the InstanceLockedExceptionAction property. 此属性指定当服务主机尝试锁定当前已由另一台主机锁定的实例时收到 InstanceLockedException 时应采取的措施。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. |
| MaxConnectionRetries |
获取或设置最大 SQL 连接重试次数。Gets or sets the maximum number of SQL connection retries. 默认值为 4。The default value is 4. |
| RunnableInstancesDetectionPeriod |
获取或设置 RunnableInstancesDetectionPeriod 属性。Gets or sets the RunnableInstancesDetectionPeriod property. 指定时间段,在该时间段后,SQL 工作流实例存储区将运行一个检测任务,来检测上一检测周期后持久性数据库中的任何可运行或可激活的工作流实例。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. |
方法
| AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) |
一个 IServiceBehavior 接口的 |
| ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) |
一个 IServiceBehavior 接口的 |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Promote(String, IEnumerable<XName>, IEnumerable<XName>) |
提升可在查询中使用的属性。Promotes properties that can be used in queries. 提升的属性是指在查询中用于检索实例的属性。The promoted properties are the properties that you can use in queries to retrieve instances. 这些属性可以是以变量或二进制表示的简单类型(int32、string、bool 等)。These property can be of simple type (int32, string, bool and so on), which is represented by a variant or binary. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| Validate(ServiceDescription, ServiceHostBase) |
检查服务主机和服务说明,从而确定服务是否可成功运行。Inspects the service host and the service description to confirm that the service can run successfully. |