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 の種類は、クライアントへの接続で使用される基になるチャネルの種類によって決まります。 次の表では、サポートされる信頼できるセッション チャネルの種類を、基になるチャネルごとに示します。
基になるチャネルの種類別の、信頼できるセッションの TChannel 型のサポート |
IReplyChannel | IReplySessionChannel | IDuplexChannel | IDuplexSessionChannel |
|---|---|---|---|---|
| IInputSessionChannel | はい | Yes | Yes | はい |
| IReplySessionChannel | はい | はい | いいえ | いいえ |
| IDuplexSessionChannel | いいえ | いいえ | Yes | Yes |