WorkflowServiceHost 类

定义

注意

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

为基于工作流的服务提供主机。

public ref class WorkflowServiceHost : System::ServiceModel::ServiceHostBase
public class WorkflowServiceHost : System.ServiceModel.ServiceHostBase
[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public class WorkflowServiceHost : System.ServiceModel.ServiceHostBase
type WorkflowServiceHost = class
    inherit ServiceHostBase
[<System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")>]
type WorkflowServiceHost = class
    inherit ServiceHostBase
Public Class WorkflowServiceHost
Inherits ServiceHostBase
继承
属性

注解

实现由 Windows Communication Foundation (WCF) 服务模型编程模型使用的主机。

使用 WorkflowServiceHost 类在不使用Internet Information Services(IIS)或Windows激活服务(WAS)来公开服务时,将工作流配置为供客户端应用程序使用。 IIS 和 WAS 都代表你与对象 WorkflowServiceHost 进行交互。

若要将工作流公开为供调用方使用的服务,WCF 需要完整的服务说明(由 ServiceDescription 类表示)。 该 WorkflowServiceHost 类从工作流服务类型和配置信息创建一个 ServiceDescription ,然后使用该说明为说明中的每个终结点创建 ChannelDispatcher 对象。

WorkflowServiceHost使用对象加载工作流服务、配置终结点、应用安全设置和启动侦听器来处理传入请求。

构造函数

名称 说明
WorkflowServiceHost()
已过时.

初始化 WorkflowServiceHost 类的新实例。

WorkflowServiceHost(Stream, Stream, ITypeProvider, Uri[])
已过时.

使用包含工作流定义的字节流、包含工作流规则定义的字节流、自定义活动类型的类型提供程序以及指定的服务的基址初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(Stream, Stream, Uri[])
已过时.

使用包含工作流定义的字节流、包含工作流规则定义的字节流以及指定的服务的基址初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(Stream, Uri[])
已过时.

使用包含工作流定义和指定服务的基址的字节流初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(String, String, ITypeProvider, Uri[])
已过时.

使用工作流定义的路径、工作流规则定义的路径、自定义活动类型的类型提供程序以及指定的服务的基址初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(String, String, Uri[])
已过时.

使用工作流定义的路径、工作流规则定义的路径以及指定的服务的基址初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(String, Uri[])
已过时.

使用工作流定义的路径和指定的服务的基址初始化类的新实例 WorkflowServiceHost

WorkflowServiceHost(Type, Uri[])
已过时.

使用工作流类型和指定的服务的基址初始化类的新实例 WorkflowServiceHost

属性

名称 说明
Authentication
已过时.

获取服务身份验证行为。

(继承自 ServiceHostBase)
Authorization
已过时.

获取托管的服务的授权行为。

(继承自 ServiceHostBase)
BaseAddresses
已过时.

获取托管服务使用的基址。

(继承自 ServiceHostBase)
ChannelDispatchers
已过时.

获取服务主机使用的通道调度程序集合。

(继承自 ServiceHostBase)
CloseTimeout
已过时.

获取或设置允许服务主机关闭的时间间隔。

(继承自 ServiceHostBase)
Credentials
已过时.

获取托管服务的凭据。

(继承自 ServiceHostBase)
DefaultCloseTimeout
已过时.

获取允许服务主机关闭的默认时间间隔。

(继承自 ServiceHostBase)
DefaultOpenTimeout
已过时.

获取允许服务主机打开的默认时间间隔。

(继承自 ServiceHostBase)
Description
已过时.

获取托管服务的说明。

(继承自 ServiceHostBase)
Extensions
已过时.

获取当前指定的服务主机的扩展。

(继承自 ServiceHostBase)
ImplementedContracts
已过时.

检索由托管服务实现的协定。

(继承自 ServiceHostBase)
IsDisposed
已过时.

获取一个值,该值指示是否已释放通信对象。

(继承自 CommunicationObject)
ManualFlowControlLimit
已过时.

获取或设置托管服务接收的消息的流控制限制。

(继承自 ServiceHostBase)
OpenTimeout
已过时.

获取或设置允许服务主机打开的时间间隔。

(继承自 ServiceHostBase)
State
已过时.

获取一个值,该值指示通信对象的当前状态。

(继承自 CommunicationObject)
ThisLock
已过时.

获取在状态转换期间保护类实例的互斥锁。

(继承自 CommunicationObject)

方法

名称 说明
Abort()
已过时.

使通信对象立即从其当前状态转换为结束状态。

(继承自 CommunicationObject)
AddBaseAddress(Uri)
已过时.

将基址添加到服务主机。

(继承自 ServiceHostBase)
AddDefaultEndpoints()
已过时.

使用默认绑定为服务主机中找到的每个协定中的所有基址添加服务终结点。

(继承自 ServiceHostBase)
AddServiceEndpoint(ServiceEndpoint)
已过时.

将指定的服务终结点添加到托管服务。

(继承自 ServiceHostBase)
AddServiceEndpoint(String, Binding, String, Uri)
已过时.

使用指定的协定、绑定、终结点地址和 URI 将服务终结点添加到托管服务,其中包含它侦听的地址。

(继承自 ServiceHostBase)
AddServiceEndpoint(String, Binding, String)
已过时.

使用指定的协定、绑定和终结点地址将服务终结点添加到托管服务。

(继承自 ServiceHostBase)
AddServiceEndpoint(String, Binding, Uri, Uri)
已过时.

使用包含终结点和侦听地址的指定协定、绑定和 URI 将服务终结点添加到托管服务。

(继承自 ServiceHostBase)
AddServiceEndpoint(String, Binding, Uri)
已过时.

使用指定的协定、绑定和包含终结点地址的 URI 将服务终结点添加到托管服务。

(继承自 ServiceHostBase)
AddServiceEndpoint(Type, Binding, String, Uri)
已过时.

使用指定的协定、绑定、终结点地址和服务侦听的 URI 将服务终结点添加到工作流服务。

AddServiceEndpoint(Type, Binding, String)
已过时.

使用指定的协定、绑定和终结点地址为工作流服务添加服务终结点。

AddServiceEndpoint(Type, Binding, Uri, Uri)
已过时.

使用指定的协定、绑定、包含终结点地址的 URI 以及服务侦听的 URI 将服务终结点添加到工作流服务。

AddServiceEndpoint(Type, Binding, Uri)
已过时.

使用包含终结点地址的指定协定、绑定和 URI 将服务终结点添加到工作流服务。

ApplyConfiguration()
已过时.

从配置文件加载服务说明信息,并将其应用于正在构造的运行时。

(继承自 ServiceHostBase)
BeginClose(AsyncCallback, Object)
已过时.

开始异步操作以关闭通信对象。

(继承自 CommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)
已过时.

开始异步操作以关闭具有指定超时的通信对象。

(继承自 CommunicationObject)
BeginOpen(AsyncCallback, Object)
已过时.

开始异步操作以打开通信对象。

(继承自 CommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)
已过时.

开始一个异步操作,以在指定的时间间隔内打开通信对象。

(继承自 CommunicationObject)
Close()
已过时.

使通信对象从其当前状态转换为关闭状态。

(继承自 CommunicationObject)
Close(TimeSpan)
已过时.

使通信对象在指定的时间间隔内从其当前状态转换为关闭状态。

(继承自 CommunicationObject)
CreateDescription(IDictionary<String,ContractDescription>)
已过时.

创建工作流服务的说明。

EndClose(IAsyncResult)
已过时.

完成异步操作以关闭通信对象。

(继承自 CommunicationObject)
EndOpen(IAsyncResult)
已过时.

完成异步操作以打开通信对象。

(继承自 CommunicationObject)
Equals(Object)
已过时.

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

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

使通信对象从其当前状态过渡到错误状态。

(继承自 CommunicationObject)
GetCommunicationObjectType()
已过时.

获取通信对象的类型。

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

用作默认哈希函数。

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

获取当前实例的 Type

(继承自 Object)
IncrementManualFlowControlLimit(Int32)
已过时.

按指定的增量将消息流速率限制到托管服务。

(继承自 ServiceHostBase)
InitializeDescription(UriSchemeKeyedCollection)
已过时.

使用协定和服务说明创建和初始化服务主机。

(继承自 ServiceHostBase)
InitializeRuntime()
已过时.

初始化服务主机的运行时。

(继承自 ServiceHostBase)
LoadConfigurationSection(ServiceElement)
已过时.

从托管服务的配置文件加载服务元素。

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

创建当前 Object的浅表副本。

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

中止服务。

(继承自 ServiceHostBase)
OnBeginClose(TimeSpan, AsyncCallback, Object)
已过时.

开始在服务主机关闭时调用的异步操作。

(继承自 ServiceHostBase)
OnBeginOpen(TimeSpan, AsyncCallback, Object)
已过时.

开始在打开服务主机时调用的异步操作。

(继承自 ServiceHostBase)
OnClose(TimeSpan)
已过时.

关闭托管服务,包括其通道调度程序和关联的实例上下文和侦听器。

(继承自 ServiceHostBase)
OnClosed()
已过时.

释放服务主机使用的资源。

(继承自 ServiceHostBase)
OnClosing()
已过时.

在将此方法置于结束状态之前 WorkflowServiceHost 调用。

OnEndClose(IAsyncResult)
已过时.

完成在服务主机关闭时调用的异步操作。

(继承自 ServiceHostBase)
OnEndOpen(IAsyncResult)
已过时.

完成在打开服务主机时调用的异步操作。

(继承自 ServiceHostBase)
OnFaulted()
已过时.

在通信对象由于调用同步故障操作而转换为错误状态后,在通信对象上插入处理。

(继承自 CommunicationObject)
OnOpen(TimeSpan)
已过时.

打开通道调度程序。

(继承自 ServiceHostBase)
OnOpened()
已过时.

获取托管服务的服务凭据、服务身份验证和授权行为。

(继承自 ServiceHostBase)
OnOpening()
已过时.

在将通信对象转换为打开状态期间调用。

(继承自 CommunicationObject)
Open()
已过时.

使通信对象从创建的状态转换为打开状态。

(继承自 CommunicationObject)
Open(TimeSpan)
已过时.

使通信对象在指定的时间间隔内从创建的状态转换为打开状态。

(继承自 CommunicationObject)
ReleasePerformanceCounters()
已过时.

释放托管服务的服务和通道调度程序性能计数器。

(继承自 ServiceHostBase)
SetEndpointAddress(ServiceEndpoint, String)
已过时.

将指定终结点的终结点地址设置为指定地址。

(继承自 ServiceHostBase)
ThrowIfDisposed()
已过时.

如果释放通信对象,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrImmutable()
已过时.

如果未将属性设置为State状态的通信对象Created,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrNotOpen()
已过时.

如果通信对象未处于 Opened 状态,则引发异常。

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

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

(继承自 Object)

活动

名称 说明
Closed
已过时.

当通信对象转换为关闭状态时发生。

(继承自 CommunicationObject)
Closing
已过时.

当通信对象转换为结束状态时发生。

(继承自 CommunicationObject)
Faulted
已过时.

当通信对象转换为错误状态时发生。

(继承自 CommunicationObject)
Opened
已过时.

当通信对象转换为打开状态时发生。

(继承自 CommunicationObject)
Opening
已过时.

当通信对象转换为打开状态时发生。

(继承自 CommunicationObject)
UnknownMessageReceived
已过时.

收到未知消息时发生。

(继承自 ServiceHostBase)

显式接口实现

名称 说明
IDisposable.Dispose()
已过时.

关闭服务主机。

(继承自 ServiceHostBase)

适用于