Redigera

Dela via


WorkflowServiceHost.AddServiceEndpoint Method

Definition

Adds a service endpoint.

Overloads

AddServiceEndpoint(XName, Binding, String, Uri, String)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, listen URI, and behavior configuration name.

AddServiceEndpoint(String, Binding, Uri, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, and listen URI.

AddServiceEndpoint(String, Binding, String, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, and listen URI.

AddServiceEndpoint(XName, Binding, Uri, Uri, String)

Adds a service endpoint to the workflow service host using the specified implemented contract, binding, endpoint address, listen URI, and a behavior configuration name.

AddServiceEndpoint(String, Binding, String)

Adds a service endpoint to the workflow service host using the specified contract, binding, and address.

AddServiceEndpoint(ServiceEndpoint)

Adds a service endpoint to the workflow service host.

AddServiceEndpoint(String, Binding, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, and address.

AddServiceEndpoint(XName, Binding, String, Uri, String)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, listen URI, and behavior configuration name.

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (System.Xml.Linq.XName serviceContractName, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri = default, string behaviorConfigurationName = default);
override this.AddServiceEndpoint : System.Xml.Linq.XName * System.ServiceModel.Channels.Binding * string * Uri * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (serviceContractName As XName, binding As Binding, address As String, Optional listenUri As Uri = Nothing, Optional behaviorConfigurationName As String = Nothing) As ServiceEndpoint

Parameters

serviceContractName
XName

The contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
String

The address of the endpoint.

listenUri
Uri

The address at which the service endpoint listens for incoming messages.

behaviorConfigurationName
String

The endpoint behavior configuration name.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to

AddServiceEndpoint(String, Binding, Uri, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, and listen URI.

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);
override this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * Uri * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As Uri, listenUri As Uri) As ServiceEndpoint

Parameters

implementedContract
String

The contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
Uri

The address of the endpoint.

listenUri
Uri

The address at which the service endpoint listens for incoming messages.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to

AddServiceEndpoint(String, Binding, String, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, endpoint address, and listen URI.

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);
override this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * string * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As String, listenUri As Uri) As ServiceEndpoint

Parameters

implementedContract
String

The service contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
String

The address of the endpoint.

listenUri
Uri

The address at which the service endpoint listens for incoming messages.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to

AddServiceEndpoint(XName, Binding, Uri, Uri, String)

Adds a service endpoint to the workflow service host using the specified implemented contract, binding, endpoint address, listen URI, and a behavior configuration name.

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (System.Xml.Linq.XName serviceContractName, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri = default, string behaviorConfigurationName = default);
override this.AddServiceEndpoint : System.Xml.Linq.XName * System.ServiceModel.Channels.Binding * Uri * Uri * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (serviceContractName As XName, binding As Binding, address As Uri, Optional listenUri As Uri = Nothing, Optional behaviorConfigurationName As String = Nothing) As ServiceEndpoint

Parameters

serviceContractName
XName

The contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
Uri

The address of the endpoint.

listenUri
Uri

The address at which the service endpoint listens for incoming messages.

behaviorConfigurationName
String

The behavior configuration name.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to

AddServiceEndpoint(String, Binding, String)

Adds a service endpoint to the workflow service host using the specified contract, binding, and address.

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, string address);
override this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As String) As ServiceEndpoint

Parameters

implementedContract
String

The service contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
String

The address of the endpoint.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to

AddServiceEndpoint(ServiceEndpoint)

Adds a service endpoint to the workflow service host.

public:
 override void AddServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public override void AddServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
override this.AddServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
Public Overrides Sub AddServiceEndpoint (endpoint As ServiceEndpoint)

Parameters

endpoint
ServiceEndpoint

The service endpoint to add.

Examples

The following example shows how to use the AddServiceEndpoint method.

Applies to

AddServiceEndpoint(String, Binding, Uri)

Adds a service endpoint to the workflow service host using the specified contract, binding, and address.

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, Uri address);
override this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As Uri) As ServiceEndpoint

Parameters

implementedContract
String

The service contract exposed by the endpoint.

binding
Binding

The binding for the endpoint.

address
Uri

The address of the endpoint.

Returns

A service endpoint.

Examples

The following example shows how to add a service endpoint using this method.

Applies to