你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TcpRelayTransportBindingElement.BuildChannelListener<TChannel> 方法

定义

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

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)

类型参数

TChannel

通道工厂的类型。

参数

context
BindingContext

介绍创建通道工厂所需的绑定、行为、协定和其他信息。

返回

IChannelListener<TChannel>

指定类型的通道侦听器。

例外

启用传输保护并将“连接模式”设置为“混合”或“直接”时。

适用于