WorkflowServiceHostFactory.CreateWorkflowServiceHost 方法

定义

创建 WorkflowServiceHost 类的新实例。

重载

CreateWorkflowServiceHost(Activity, Uri[])

使用指定的 WorkflowServiceHost 和基址创建 Activity 类的新实例。

CreateWorkflowServiceHost(WorkflowService, Uri[])

使用指定的 WorkflowServiceHost 和基址创建 WorkflowService 类的新实例。

CreateWorkflowServiceHost(Activity, Uri[])

使用指定的 WorkflowServiceHost 和基址创建 Activity 类的新实例。

protected:
 virtual System::ServiceModel::Activities::WorkflowServiceHost ^ CreateWorkflowServiceHost(System::Activities::Activity ^ activity, cli::array <Uri ^> ^ baseAddresses);
protected virtual System.ServiceModel.Activities.WorkflowServiceHost CreateWorkflowServiceHost (System.Activities.Activity activity, Uri[] baseAddresses);
abstract member CreateWorkflowServiceHost : System.Activities.Activity * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
override this.CreateWorkflowServiceHost : System.Activities.Activity * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Protected Overridable Function CreateWorkflowServiceHost (activity As Activity, baseAddresses As Uri()) As WorkflowServiceHost

参数

activity
Activity

工作流定义。

baseAddresses
Uri[]

一个可用作其他地址引用点的地址的列表。

返回

一个工作流服务主机实例。

适用于

CreateWorkflowServiceHost(WorkflowService, Uri[])

使用指定的 WorkflowServiceHost 和基址创建 WorkflowService 类的新实例。

protected:
 virtual System::ServiceModel::Activities::WorkflowServiceHost ^ CreateWorkflowServiceHost(System::ServiceModel::Activities::WorkflowService ^ service, cli::array <Uri ^> ^ baseAddresses);
protected virtual System.ServiceModel.Activities.WorkflowServiceHost CreateWorkflowServiceHost (System.ServiceModel.Activities.WorkflowService service, Uri[] baseAddresses);
abstract member CreateWorkflowServiceHost : System.ServiceModel.Activities.WorkflowService * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
override this.CreateWorkflowServiceHost : System.ServiceModel.Activities.WorkflowService * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Protected Overridable Function CreateWorkflowServiceHost (service As WorkflowService, baseAddresses As Uri()) As WorkflowServiceHost

参数

service
WorkflowService

成为主机的工作流服务。

baseAddresses
Uri[]

一个可用作其他地址引用点的地址的列表。

返回

一个工作流服务主机实例。

适用于