WorkflowServiceHost Constructors

Definition

Initializes a new instance of the WorkflowServiceHost class.

Overloads

WorkflowServiceHost()

Initializes a new instance of the WorkflowServiceHost class.

WorkflowServiceHost(Stream, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition and the base addresses of the service specified.

WorkflowServiceHost(String, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition and the base addresses of the service specified.

WorkflowServiceHost(Type, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a workflow type and the base addresses of the service specified.

WorkflowServiceHost(Stream, Stream, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition, a byte stream that contains the workflow rules definition, and the base addresses of the service specified.

WorkflowServiceHost(String, String, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition, a path to the workflow rules definition, and the base addresses of the service specified.

WorkflowServiceHost(Stream, Stream, ITypeProvider, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition, a byte stream that contains the workflow rules definition, a type provider for custom activity types, and the base addresses of the service specified.

WorkflowServiceHost(String, String, ITypeProvider, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition, a path to the workflow rules definition, a type provider for custom activity types, and the base addresses of the service specified.

WorkflowServiceHost()

Initializes a new instance of the WorkflowServiceHost class.

protected:
 WorkflowServiceHost();
protected WorkflowServiceHost ();
Protected Sub New ()

Applies to

WorkflowServiceHost(Stream, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (System.IO.Stream workflowDefinition, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ParamArray baseAddress As Uri())

Parameters

workflowDefinition
Stream

Stream that contains the workflow definition.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload if the workflow definition is stored in secured storage, such as a database.

Applies to

WorkflowServiceHost(String, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::String ^ workflowDefinitionPath, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (string workflowDefinitionPath, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ParamArray baseAddress As Uri())

Parameters

workflowDefinitionPath
String

A string that contains the path to the workflow definition file.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when the workflow definition is in the form of windows file.

Applies to

WorkflowServiceHost(Type, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a workflow type and the base addresses of the service specified.

public:
 WorkflowServiceHost(Type ^ workflowType, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (Type workflowType, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : Type * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowType As Type, ParamArray baseAddress As Uri())

Parameters

workflowType
Type

The Type of the workflow instance.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when the workflow is defined as compiled type.

Applies to

WorkflowServiceHost(Stream, Stream, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition, a byte stream that contains the workflow rules definition, and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, System::IO::Stream ^ ruleDefinition, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (System.IO.Stream workflowDefinition, System.IO.Stream ruleDefinition, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * System.IO.Stream * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ruleDefinition As Stream, ParamArray baseAddress As Uri())

Parameters

workflowDefinition
Stream

Stream that contains the workflow definition.

ruleDefinition
Stream

Stream that contains the workflow rules definition.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when the workflow definition and rules definition are stored in secured storage, such as a database.

Applies to

WorkflowServiceHost(String, String, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition, a path to the workflow rules definition, and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::String ^ workflowDefinitionPath, System::String ^ ruleDefinitionPath, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (string workflowDefinitionPath, string ruleDefinitionPath, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * string * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ruleDefinitionPath As String, ParamArray baseAddress As Uri())

Parameters

workflowDefinitionPath
String

A string that contains the path to the workflow definition file.

ruleDefinitionPath
String

A string that contains the path to the workflow rules definition file.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when the workflow definition and rules definition are in the form of windows files.

Applies to

WorkflowServiceHost(Stream, Stream, ITypeProvider, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a byte stream that contains the workflow definition, a byte stream that contains the workflow rules definition, a type provider for custom activity types, and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, System::IO::Stream ^ ruleDefinition, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (System.IO.Stream workflowDefinition, System.IO.Stream ruleDefinition, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * System.IO.Stream * System.Workflow.ComponentModel.Compiler.ITypeProvider * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ruleDefinition As Stream, typeProvider As ITypeProvider, ParamArray baseAddress As Uri())

Parameters

workflowDefinition
Stream

Stream that contains the workflow definition.

ruleDefinition
Stream

Stream that contains the workflow rules definition.

typeProvider
ITypeProvider

A type provider that implements the ITypeProvider interface.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when your compiled workflow references custom types defined in a separate assembly.

Applies to

WorkflowServiceHost(String, String, ITypeProvider, Uri[])

Initializes a new instance of the WorkflowServiceHost class using a path to the workflow definition, a path to the workflow rules definition, a type provider for custom activity types, and the base addresses of the service specified.

public:
 WorkflowServiceHost(System::String ^ workflowDefinitionPath, System::String ^ ruleDefinitionPath, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost (string workflowDefinitionPath, string ruleDefinitionPath, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * string * System.Workflow.ComponentModel.Compiler.ITypeProvider * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ruleDefinitionPath As String, typeProvider As ITypeProvider, ParamArray baseAddress As Uri())

Parameters

workflowDefinitionPath
String

A string that contains the path to the workflow definition file.

ruleDefinitionPath
String

A string that contains the path to the workflow rules definition file.

typeProvider
ITypeProvider

A type provider that implements the ITypeProvider interface.

baseAddress
Uri[]

An array of type Uri that contains the base addresses for the hosted service.

Remarks

Use this overload when you have your workflow defined in a workflow markup file (.xoml) and it references custom types defined in a separate assembly.

Applies to