Szerkesztés

Megosztás a következőn keresztül:


OneWayBindingElement.BuildChannelListener<TChannel> Method

Definition

Initializes a channel listener for accepting one-way channels.

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 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