WorkflowServiceHost.AddServiceEndpoint Method

Definition

Adds a service endpoint to the hosted service.

Overloads

AddServiceEndpoint(Type, Binding, String)

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

AddServiceEndpoint(Type, Binding, Uri)

Adds a service endpoint to the workflow service with a specified contract, binding, and URI that contains the endpoint address.

AddServiceEndpoint(Type, Binding, String, Uri)

Adds a service endpoint to the workflow service with a specified contract, a binding, an endpoint address, and a URI on which the service listens.

AddServiceEndpoint(Type, Binding, Uri, Uri)

Adds a service endpoint to the workflow service with a specified contract, a binding, a URI that contains the endpoint address, and a URI on which the service listens.

AddServiceEndpoint(Type, Binding, String)

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

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, string address);

Parameters

implementedContract
Type

The Type of contract for the endpoint added.

binding
Binding

The Binding for the endpoint added.

address
String

The address for the endpoint added.

Returns

The ServiceEndpoint added to the workflow service.

Exceptions

implementedContract is null.

-or-

address is null.

ServiceContractAttribute not specified for implementedContract. -or-

The workflow service does not implement implementedContract.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddServiceEndpoint(Type, Binding, Uri)

Adds a service endpoint to the workflow service with a specified contract, binding, and URI that contains the endpoint address.

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, Uri address);

Parameters

implementedContract
Type

The Type of contract for the endpoint added.

binding
Binding

The Binding for the endpoint added.

address
Uri

The Uri that contains the address for the endpoint added.

Returns

The ServiceEndpoint added to the workflow service.

Exceptions

implementedContract is null.

-or-

address is null.

ServiceContractAttribute not specified for implementedContract.

-or-

The workflow service does not implement implementedContract.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddServiceEndpoint(Type, Binding, String, Uri)

Adds a service endpoint to the workflow service with a specified contract, a binding, an endpoint address, and a URI on which the service listens.

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);

Parameters

implementedContract
Type

The Type of contract for the endpoint added.

binding
Binding

The Binding for the endpoint added.

address
String

The endpoint address for the service.

listenUri
Uri

The Uri on which the service endpoints can listen.

Returns

The ServiceEndpoint added to the workflow service.

Exceptions

implementedContract is null.

-or-

address is null.

The workflow service does not implement implementedContract.

-or-

ServiceContractAttribute not specified for implementedContract.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddServiceEndpoint(Type, Binding, Uri, Uri)

Adds a service endpoint to the workflow service with a specified contract, a binding, a URI that contains the endpoint address, and a URI on which the service listens.

public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);

Parameters

implementedContract
Type

The Type of contract for the endpoint added.

binding
Binding

The Binding for the endpoint added.

address
Uri

The Uri that contains the address for the endpoint added.

listenUri
Uri

The Uri on which the service endpoints can listen.

Returns

The ServiceEndpoint added to the workflow service.

Exceptions

implementedContract is null.

-or-

address is null.

The workflow service does not implement implementedContract.

-or-

ServiceContractAttribute not specified for implementedContract.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1