BuildChannelFactory(TChannel) Method

PeerCustomResolverBindingElement.BuildChannelFactory<TChannel> Method (BindingContext)


Creates a channel factory that can be used to create a channel for sending messages.

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

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


Type: System.ServiceModel.Channels.BindingContext

BindingContext that specifies the binding context for the channel factory.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory<TChannel>

IChannelFactory that contains the new channel factory of the specified type.

Type Parameters


The type of channel to produce.

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

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft