TextMessageEncodingBindingElement.BuildChannelListener<TChannel>(BindingContext) 方法
定义
在服务上生成通道侦听器,以接受指定上下文的指定类型通道。Builds the channel listener on the service that accepts a specified type of channel for a specified context.
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)
类型参数
- TChannel
通道侦听器接受的通道类型。The type of channel the channel listener accepts.
参数
- context
- BindingContext
侦听器的 BindingContext。The BindingContext for the listener.
返回
指定上下文的 IChannelListener<TChannel> 类型的 TChannel。An IChannelListener<TChannel> of type TChannel for the specified context.