PnrpPeerResolverBindingElement.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>

指定した種類の新しいチャネル リスナーを格納する IChannelListener

注釈

このメソッドを使用すると、トランスポート バインディング要素の構成に基づいてメッセージを受信するためのチャネル リスナーを取得できます。

適用対象