Share via


ReliableSessionBindingElement.BuildChannelFactory<TChannel> メソッド

定義

信頼できるセッションをサポートする、指定した種類のチャネルを作成するファクトリを返します。

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

型パラメーター

TChannel

ファクトリが作成するチャネルの種類。

パラメーター

context
BindingContext

BindingContext 型のチャネルを作成できるファクトリの作成に必要な情報を格納する TChannel

戻り値

IChannelFactory<TChannel> から初期化される IChannel 型の context

例外

TChannel がサポートされていません。

注釈

ファクトリによって作成される IChannel の型は TChannel です。 クライアントでサポートされる TChannel の型は、サービスに接続する基になるチャネルの種類によって決まります。 次の表では、サポートされる信頼できるセッション チャネルの種類を、基になるチャネルごとに示します。

基になるチャネルの種類別の、信頼できるセッションの TChannel 型のサポート IRequestChannel IRequestSessionChannel IDuplexChannel IDuplexSessionChannel
IOutputSessionChannel はい Yes Yes はい
IRequestSessionChannel はい はい いいえ いいえ
IDuplexSessionChannel いいえ いいえ Yes Yes

適用対象