CompositeDuplexBindingElement.BuildChannelListener<TChannel> 方法

定義

傳回可以接受複合雙工通道的通道接聽程式。

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

接聽程式會接受的 IChannel

參數

context
BindingContext

BindingContext,其提供建置通道接聽程式所需的內容。

傳回

IChannelListener<TChannel>,其會接受 TChannel 型別的複合雙工通道。

例外狀況

contextnull

TChannel 的型別不是 IInputChannel,並且不受支援。

備註

此建置內容需要 IInputChannel 來做為 TChannel

適用於