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