TransactionFlowBindingElement::BuildChannelListener<TChannel> Method (BindingContext^)
Initializes a channel listener for accepting channels of a specified type from the binding context.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: generic<typename TChannel> where TChannel : ref class, IChannel virtual IChannelListener<TChannel>^ BuildChannelListener( BindingContext^ context ) override
Parameters
- context
-
Type:
System.ServiceModel.Channels::BindingContext^
The BindingContext that should be used to build the channel listener.
Return Value
Type: System.ServiceModel.Channels::IChannelListener<TChannel>^The IChannelListener<TChannel> of type TChannel initialized from context.
Type Parameters
- TChannel
The channel type.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
| ArgumentException | A channel listener for the specified channel type cannot be built. |
This method creates a channel listener to receive messages for this binding.
This method is called by the infrastructure when building the channel. You should use it in your code only when you implement a custom binding element.
Available since 3.0