Share via


OneWayBindingElement.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> から初期化される IChannel 型の context

例外

contextnullです。

TChannel の型が IInputChannel ではありません。

内部バインディング要素は、IDuplexSessionChannel または IRequestChannel をサポートしません。

注釈

このメソッドは、チャネル リスナーを作成します。これは、このバインディングの受信メッセージを処理するチャネルの作成に使用されます。

適用対象