语言

ManualWorkflowSchedulerService 类

定义

注意

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

提供一个线程服务,允许主机应用程序创建工作流实例来捐赠 Thread 运行工作流实例的线程服务。 使用此线程服务,主机应用程序可以在同步模式下在单个 Thread 上运行工作流实例(尽管工作流包含延迟活动,工作将推迟到延迟活动在由其生成 Timer的独立线程上执行之后)。 此模式会阻止主机应用程序的执行,直到工作流实例处于空闲状态。 随后,只能使用此 RunWorkflow(Guid) 服务的方法执行工作流实例。

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

注解

注释

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

ManualWorkflowSchedulerService 不会自动运行队列中的工作流实例。 主机必须调用 RunWorkflow 才能运行指定的工作流。

构造函数

名称 说明
ManualWorkflowSchedulerService()
已过时.

初始化 ManualWorkflowSchedulerService 类的新实例。

ManualWorkflowSchedulerService(Boolean)
已过时.

初始化 ManualWorkflowSchedulerService 类的新实例。

ManualWorkflowSchedulerService(NameValueCollection)
已过时.

初始化 ManualWorkflowSchedulerService 类的新实例。

属性

名称 说明
Runtime
已过时.

获取 WorkflowRuntime 此服务。

(继承自 WorkflowRuntimeService)
State
已过时.

获取 . 的状态 WorkflowRuntimeService。

(继承自 WorkflowRuntimeService)

方法

名称 说明
Cancel(Guid)
已过时.

取消指定的现有工作流实例工作项。

Equals(Object)
已过时.

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

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

用作默认哈希函数。

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

获取当前实例的 Type。

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

创建当前 Object的浅表副本。

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

重载自 OnStarted(). 每当调用此方法时 StartRuntime() ,此方法就会被调用,由 ManualWorkflowSchedulerService 启动时 WorkflowRuntime 所需的工作使用。

OnStopped()
已过时.

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

(继承自 WorkflowRuntimeService)
RaiseServicesExceptionNotHandledEvent(Exception, Guid)
已过时.

引发 ServicesExceptionNotHandled 事件。

(继承自 WorkflowRuntimeService)
RunWorkflow(Guid)
已过时.

运行指定的工作流实例。

Schedule(WaitCallback, Guid, DateTime, Guid)
已过时.

使用指定的多播委托 DateTime 和 GUID 将指定的工作流实例添加到挂起的工作项队列。

Schedule(WaitCallback, Guid)
已过时.

使用指定的多播委托将工作流实例添加到挂起的工作项队列。

Start()
已过时.

在派生类中重写时,启动服务并将更改 State 为 Starting。

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

重载自 Stop(). 此方法 ManualWorkflowSchedulerService 用于执行停止时 WorkflowRuntime 所需的工作。

ToString()
已过时.

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

(继承自 Object)

适用于