WebMessageEncodingBindingElement.BuildChannelListener<TChannel> Method

Definition

Builds the channel listener stack on the client that accepts a specified type of channel for a specified context.

public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

context
BindingContext

The BindingContext for the listener.

Returns

An IChannelListener<TChannel> of type TChannel for the specified context.

Exceptions

The value set is null.

Applies to

Produkt Verze
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1