SecurityBindingElement.BuildChannelListenerCore<TChannel> 方法

定义

实现时创建指定类型的通道侦听器。

protected:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel abstract System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListenerCore(System::ServiceModel::Channels::BindingContext ^ context);
protected abstract System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListenerCore<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListenerCore : 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)
Protected MustOverride Function BuildChannelListenerCore(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器的类型。

参数

context
BindingContext

BindingContext 对象。

返回

IChannelListener<TChannel>

指定类型的通道侦听器。

例外

contextnull

不支持 TChannel 类型的通道。

注解

BuildChannelListener执行错误检查时,调用此方法。 当此方法在派生类中实现时,可创建通道侦听器,该通道侦听器用于创建为此绑定处理传出消息的通道。

适用于