TcpRelayTransportBindingElement.BuildChannelListener<TChannel> Method

Definition

Creates a channel listener of the specified type.

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 type of channel factory.

Parameters

context
BindingContext

Describes the bindings, behaviors, contracts, and other information required to create the channel factory.

Returns

IChannelListener<TChannel>

A channel listener of the specified type.

Exceptions

When Transport protection is enabled and the Connection Mode is set to either Hybrid or Direct.

Applies to