ReliableSessionBindingElement.BuildChannelListener<TChannel> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
信頼できるセッションをサポートする、指定した種類のチャネルを受け入れるリスナーを返します。
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型のチャネルを受け入れることができるリスナーを構築するために必要な情報を含むTChannel。
戻り値
IChannelListener<TChannel>から初期化IChannel型のcontext。
例外
TChannel はサポートされません。
注釈
リスナーによって受け入れられる IChannel は、 TChannel型です。 サービスをホストするサーバーでサポートされる TChannel の種類は、クライアントへの接続に使用される基になるチャネルの種類によって異なります。 次の表は、基になるチャネルの関数としてサポートされている信頼できるセッション チャネルの種類を示しています。
基になるチャネルの種類による Reliable Session TChannel 型のサポート |
IReplyChannel | IReplySessionChannel | IDuplexChannel | IDuplexSessionChannel |
|---|---|---|---|---|
| IInputSessionChannel | はい | はい | はい | はい |
| IReplySessionChannel | はい | はい | いいえ | いいえ |
| IDuplexSessionChannel | いいえ | いいえ | はい | はい |