OneWayBindingElement::BuildChannelFactory<TChannel> Method (BindingContext^)
Initializes a channel factory for producing one-way channels from the 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 provides context for the binding element.
Return Value
Type: System.ServiceModel.Channels::IChannelFactory<TChannel>^The IChannelFactory<TChannel> of type IChannel initialized from the context.
Type Parameters
- TChannel
The type of channel that the factory builds.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
| ArgumentException | The type of TChannel is not IOutputChannel. |
| InvalidOperationException | The inner binding element does not support IDuplexSessionChannel or IRequestChannel. |
This method creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.
Available since 3.0