Share via


SecurityBindingElement.BuildChannelListener<TChannel> メソッド

定義

指定する SecurityBindingElement の設定とバインディング コンテキストに基づいて、チャネル リスナーを作成します。

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

チャネル リスナーの種類。

パラメーター

戻り値

渡される SecurityBindingElement 設定とバインド コンテキストに基づくチャネル リスナー。

例外

contextnullです。

TChannel 型のチャネルはサポートされません。

注釈

作成されるチャネル ファクトリは SOAP メッセージ セキュリティ チャネル リスナーで、内部的にバインディング コンテキスト (トランスポート チャネル リスナーを格納する) に対応するチャネル リスナーへの参照を保持します。

このメソッドは、パラメーター エラーチェックを行ってから、BuildChannelListenerCore を呼び出します。 このメソッドは、派生クラスで実装されると、チャネル リスナーを作成します。これは、このバインドの受信メッセージを処理するチャネルの作成に使用されます。

適用対象