SharedConnectionWorkflowCommitWorkBatchService 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

表示运行时使用的服务的共享连接版本 WorkflowCommitWorkBatchService 。 在此上下文中,共享连接意味着服务对跟踪和持久性服务使用相同的 SQL 连接。

public ref class SharedConnectionWorkflowCommitWorkBatchService : System::Workflow::Runtime::Hosting::WorkflowCommitWorkBatchService
public class SharedConnectionWorkflowCommitWorkBatchService : System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class SharedConnectionWorkflowCommitWorkBatchService : System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService
type SharedConnectionWorkflowCommitWorkBatchService = class
    inherit WorkflowCommitWorkBatchService
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type SharedConnectionWorkflowCommitWorkBatchService = class
    inherit WorkflowCommitWorkBatchService
Public Class SharedConnectionWorkflowCommitWorkBatchService
Inherits WorkflowCommitWorkBatchService
继承
SharedConnectionWorkflowCommitWorkBatchService
属性

注解

注意

此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的 Deprecated Types。

该服务 SharedConnectionWorkflowCommitWorkBatchService 用于使用不同对象之间的共享连接的数据库事务。 若要使用SharedConnectionWorkflowCommitWorkBatchService实例中的WorkflowRuntime替代DefaultWorkflowCommitWorkBatchService方法,请使用AddService该方法。

Important

如果 SQL 服务器使用的 SharedConnectionWorkflowCommitWorkBatchService SQL 服务器已关闭(例如 SQL 群集故障转移或间歇性网络问题),则会 SharedConnectionWorkflowCommitWorkBatchService 在引发 ServicesExceptionNotHandled 事件之前最多重试提交过程 20 次。

构造函数

名称 说明
SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection)
已过时.

初始化类 SharedConnectionWorkflowCommitWorkBatchService

SharedConnectionWorkflowCommitWorkBatchService(String)
已过时.

使用数据库连接字符串初始化 SharedConnectionWorkflowCommitWorkBatchService 类。

属性

名称 说明
EnableRetries
已过时.

获取或设置一个值,该值 SharedConnectionWorkflowCommitWorkBatchService 指定是否将重试提交工作批处理。

Runtime
已过时.

获取 WorkflowRuntime 此服务。

(继承自 WorkflowRuntimeService)
State
已过时.

获取 . 的状态 WorkflowRuntimeService

(继承自 WorkflowRuntimeService)

方法

名称 说明
CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback)
已过时.

如果事务不存在,则创建一个事务。

Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
OnStarted()
已过时.

在派生类中重写时,表示在工作流运行时引擎引发 Started 事件时将调用的方法。

(继承自 WorkflowRuntimeService)
OnStopped()
已过时.

表示工作流运行时引发 Stopped 事件时调用的方法。

RaiseServicesExceptionNotHandledEvent(Exception, Guid)
已过时.

引发 ServicesExceptionNotHandled 事件。

(继承自 WorkflowRuntimeService)
Start()
已过时.

表示调用以启动服务的方法。

Stop()
已过时.

在派生类中重写时,停止服务并将更改 StateStopping

(继承自 WorkflowRuntimeService)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于