Share via


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

バインド コンテキスト。

戻り値

IChannelListener<TChannel>

コンテキストから初期化された指定の種類のチャネル リスナー。

適用対象