BuildChannelFactory(TChannel) Method
Collapse the table of content
Expand the table of content

HttpTransportBindingElement.BuildChannelFactory<TChannel> Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a channel factory that can be used to create a channel.

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

public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(
	BindingContext context
)

Type Parameters

TChannel

Type of channel factory.

Parameters

context
Type: System.ServiceModel.Channels.BindingContext
BindingContext members that describe bindings, behaviors, contracts and other information required to create the channel factory.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory<TChannel>
A channel factory of the specified type.

ExceptionCondition
ArgumentNullException

context cannot be null.

This method can be used to get a channel factory for sending messages based on the configuration of the transport binding element.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft