WorkflowServiceHost.AddServiceEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, System::String ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, string address);
override this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As Type, binding As Binding, address As String) As ServiceEndpoint
Parameters
- address
- String
The address for the endpoint added.
Returns
The ServiceEndpoint added to the workflow service.
Exceptions
ServiceContractAttribute not specified for implementedContract
.
-or-
The workflow service does not implement implementedContract
.
Applies to
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);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, Uri address);
override this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As Type, binding As Binding, address As Uri) As ServiceEndpoint
Parameters
Returns
The ServiceEndpoint added to the workflow service.
Exceptions
ServiceContractAttribute not specified for implementedContract
.
-or-
The workflow service does not implement implementedContract
.
Applies to
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, System::String ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);
override this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As Type, binding As Binding, address As String, listenUri As Uri) As ServiceEndpoint
Parameters
- address
- String
The endpoint address for the service.
Returns
The ServiceEndpoint added to the workflow service.
Exceptions
The workflow service does not implement implementedContract
.
-or-
ServiceContractAttribute not specified for implementedContract
.
Applies to
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);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type implementedContract, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);
override this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (implementedContract As Type, binding As Binding, address As Uri, listenUri As Uri) As ServiceEndpoint
Parameters
Returns
The ServiceEndpoint added to the workflow service.
Exceptions
The workflow service does not implement implementedContract
.
-or-
ServiceContractAttribute not specified for implementedContract
.
Applies to
.NET