ServiceConfiguration.AddServiceEndpoint Method (Type, Binding, Uri, Uri)

.NET Framework (current version)
 

Adds a service endpoint to the configuration service with the specified contract, binding, and URIs that contain the endpoint and listening addresses.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ServiceEndpoint AddServiceEndpoint(
	Type contractType,
	Binding binding,
	Uri address,
	Uri listenUri
)

Parameters

contractType
Type: System.Type

The type of contract implemented by the endpoint.

binding
Type: System.ServiceModel.Channels.Binding

The binding for the endpoint added.

address
Type: System.Uri

The Uri that contains the address for the endpoint added.

listenUri
Type: System.Uri

The Uri that contains the address at which the endpoint listens for incoming messages.

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint

The service endpoint added to the configuration service.

.NET Framework
Available since 4.5
Return to top
Show: