TransactionFlowBindingElement::BuildChannelFactory<TChannel> Method (BindingContext^)
Initializes a channel factory for producing channels of a specified type from a binding context.
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.
Available since 3.0