SecurityBindingElement.BuildChannelListenerCore<TChannel> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实现时创建指定类型的通道侦听器。
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 对象。
返回
指定类型的通道侦听器。
例外
context
为 null
。
不支持 TChannel
类型的通道。
注解
BuildChannelListener执行错误检查的 调用此方法。 当此方法在派生类中实现时,可创建通道侦听器,该通道侦听器用于创建为此绑定处理传出消息的通道。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈