NetMessagingTransportBindingElement.BuildChannelListener<TChannel> Method

Definition

Builds a channel listener.

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

Type of the channel.

Parameters

context
BindingContext

The binding context.

Returns

IChannelListener<TChannel>

A implemented IChannelListener interface.

Exceptions

Thrown when context is null.

Thrown when TChannel isn't a supported channel type

Remarks

Channel listeners and their associated channels are generally used by services that receive communications initiated by clients. Channel factories that implement the IChannelFactory interface, by contrast, provide the mechanisms used to create the channels through which communication with a service is initiated.

Applies to