Op Englesch liesen Editéieren

Deelen iwwer


OneWayBindingElement.BuildChannelListener<TChannel> Method

Definition

Initializes a channel listener for accepting one-way channels.

C#
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 that the listener is built to accept.

Parameters

context
BindingContext

The BindingContext that provides context for the binding element.

Returns

The IChannelListener<TChannel> of type IChannel initialized from the context.

Exceptions

context is null.

The type of TChannel is not IInputChannel.

The inner binding element does not support IDuplexSessionChannel or IRequestChannel.

Remarks

This method creates a channel listener, which is used to create a channel that processes incoming messages for this binding.

Applies to

Produkt Versiounen
.NET Framework 3.0, 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