ServiceContractGenerator.GenerateServiceEndpoint Method (ServiceEndpoint, ChannelEndpointElement)

 

Generates a service contract type and an endpoint configuration from the specified System.ServiceModel.Description.ServiceEndpoint instance.

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

public CodeTypeReference GenerateServiceEndpoint(
	ServiceEndpoint endpoint,
	out ChannelEndpointElement channelElement
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The ServiceEndpoint to use to generate the contract type.

channelElement
Type: System.ServiceModel.Configuration.ChannelEndpointElement

The generated endpoint configuration.

Return Value

Type: System.CodeDom.CodeTypeReference

A System.CodeDom.CodeTypeReference instance for the generated contract type.

Other code artifacts may also get generated as specified by using the ServiceContractGenerator.Options property.

.NET Framework
Available since 3.0
Return to top
Show: