Export (0) Print
Expand All

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

.NET Framework 4.5

Adds a service endpoint to the configuration service with a specified contract, binding, endpoint address and URI that contains the address at which it listens.

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

public ServiceEndpoint AddServiceEndpoint(
	Type contractType,
	Binding binding,
	string 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.String

The address for the endpoint added.

listenUri
Type: System.Uri

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

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint
The service endpoint added to the configuration service.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft