WindowsStreamSecurityBindingElement.BuildChannelListener(BindingContext) WindowsStreamSecurityBindingElement.BuildChannelListener(BindingContext) WindowsStreamSecurityBindingElement.BuildChannelListener(BindingContext) WindowsStreamSecurityBindingElement.BuildChannelListener(BindingContext) Method

Definition

Creates a channel listener of the specified type.

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

Type of channel listener.

Parameters

context
BindingContext BindingContext BindingContext BindingContext

BindingContext members that describe bindings, behaviors, contracts, and other information required to create the channel listener.

Returns

Returns a channel listener of the specified type. This method adds this class instance to the BindingParameters and delegates to the build method BuildInnerChannelListener<TChannel>().

Exceptions

Remarks

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

Applies to