Edit

Share via


WorkflowControlClient Constructors

Definition

Initializes a new instance of the WorkflowControlClient class.

Overloads

WorkflowControlClient()

Initializes a new instance of the WorkflowControlClient class.

WorkflowControlClient(WorkflowControlEndpoint)

Initializes a new instance of the WorkflowControlClient class with the specified WorkflowControlEndpoint.

WorkflowControlClient(String)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration.

WorkflowControlClient(Binding, EndpointAddress)

Initializes a new instance of the WorkflowControlClient class with the specified binding, and WorkflowControlEndpoint.

WorkflowControlClient(String, EndpointAddress)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration and EndpointAddress.

WorkflowControlClient(String, String)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration and endpoint address.

WorkflowControlClient()

Initializes a new instance of the WorkflowControlClient class.

public:
 WorkflowControlClient();
public WorkflowControlClient ();
Public Sub New ()

Applies to

WorkflowControlClient(WorkflowControlEndpoint)

Initializes a new instance of the WorkflowControlClient class with the specified WorkflowControlEndpoint.

public:
 WorkflowControlClient(System::ServiceModel::Activities::WorkflowControlEndpoint ^ workflowEndpoint);
public WorkflowControlClient (System.ServiceModel.Activities.WorkflowControlEndpoint workflowEndpoint);
new System.ServiceModel.Activities.WorkflowControlClient : System.ServiceModel.Activities.WorkflowControlEndpoint -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (workflowEndpoint As WorkflowControlEndpoint)

Parameters

workflowEndpoint
WorkflowControlEndpoint

The workflow control endpoint.

Examples

The following example shows how to create a WorkflowControlClient instance using this constructor.

WorkflowControlEndpoint wce = new WorkflowControlEndpoint(new BasicHttpBinding(), new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
WorkflowControlClient controlClient = new WorkflowControlClient(wce);

Applies to

WorkflowControlClient(String)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration.

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName);
public WorkflowControlClient (string endpointConfigurationName);
new System.ServiceModel.Activities.WorkflowControlClient : string -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String)

Parameters

endpointConfigurationName
String

The configuration to use.

Examples

The following example shows how to use this constructor.

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName");

Applies to

WorkflowControlClient(Binding, EndpointAddress)

Initializes a new instance of the WorkflowControlClient class with the specified binding, and WorkflowControlEndpoint.

public:
 WorkflowControlClient(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public WorkflowControlClient (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (binding As Binding, remoteAddress As EndpointAddress)

Parameters

binding
Binding

The binding.

remoteAddress
EndpointAddress

The workflow control endpoint.

Examples

The following example shows how to use this constructor.

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();

// Start a new instance of the workflow
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
controlClient.Unsuspend(instanceId);

Applies to

WorkflowControlClient(String, EndpointAddress)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration and EndpointAddress.

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public WorkflowControlClient (string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : string * System.ServiceModel.EndpointAddress -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String, remoteAddress As EndpointAddress)

Parameters

endpointConfigurationName
String

The endpoint configuration.

remoteAddress
EndpointAddress

The endpoint address.

Examples

The following example shows how to use this constructor.

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName", new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));

Applies to

WorkflowControlClient(String, String)

Initializes a new instance of the WorkflowControlClient class with the specified endpoint configuration and endpoint address.

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
public WorkflowControlClient (string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : string * string -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String, remoteAddress As String)

Parameters

endpointConfigurationName
String

The endpoint configuration.

remoteAddress
String

The endpoint address.

Examples

The following example shows how to use this constructor.

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName", "http://localhost/DataflowControl.xaml");

Applies to