Share via


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 が必要です。

適用対象