Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TransactionFlowBindingElement::BuildChannelFactory<TChannel> Method (BindingContext^)

 

Initializes a channel factory for producing channels of a specified type from a binding context.

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

public:
generic<typename TChannel>
virtual IChannelFactory<TChannel>^ BuildChannelFactory(
	BindingContext^ context
) override

Parameters

context
Type: System.ServiceModel.Channels::BindingContext^

The BindingContext that should be used to build the channel factory.

Return Value

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

The IChannelFactory<TChannel> of type TChannel initialized from context.

Type Parameters

TChannel

The channel type.

Exception Condition
ArgumentNullException

context is null.

ArgumentException

A channel factory for the specified channel type cannot be built.

This method creates a channel factory that can be used to make outgoing channels of the specified type. This method is called by the infrastructure when building the channel stack. You should use it in your code only when you implement a custom binding element.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft