Share via


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

チャネルの型。

パラメーター

context
BindingContext

チャネル リスナーを構築するために使用する必要がある BindingContext

戻り値

IChannelListener<TChannel> から初期化される TChannel 型の context

例外

contextnullです。

指定した種類のチャネルのチャネル リスナーは作成できません。

注釈

このメソッドは、このバインドのメッセージを受信するためのチャネル リスナーを作成します。

このメソッドは、チャネルを構築するときにインフラストラクチャによって呼び出されます。 コードでは、カスタム バインド要素を実装している場合にのみ使用する必要があります。

適用対象