Breyta

Deila með


CompositeDuplexBindingElement.BuildChannelListener<TChannel> Method

Definition

Returns a channel listener that can accept a composite duplex channel.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.BuildChannelListener : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function BuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

Type Parameters

TChannel

The IChannel that the listener accepts.

Parameters

context
BindingContext

The BindingContext that provides the context required to build the channel listener.

Returns

An IChannelListener<TChannel> that accepts a composite duplex channel of type TChannel.

Exceptions

context is null.

The TChannel is not of type IInputChannel and is not supported.

Remarks

The build context requires an IInputChannel for the TChannel.

Applies to