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> 의 A IChannel 입니다context.

예외

TChannel은 지원되지 않습니다.

설명

IChannel 팩터리에서 생성되는 형식은 다음과 같은 형식TChannel입니다. 클라이언트에서 지원되는 형식 TChannel 은 서비스에 연결하는 기본 채널 유형에 따라 달라집니다. 다음 표에서는 기본 채널의 함수로 지원되는 신뢰할 수 있는 세션 채널 유형을 나타냅니다.

기본 채널 형식별 신뢰할 수 있는 세션 TChannel 형식 지원 IRequestChannel IRequestSessionChannel IDuplexChannel IDuplexSessionChannel
IOutputSessionChannel Yes Yes Yes Yes
IRequestSessionChannel Yes Yes No No
IDuplexSessionChannel No No Yes Yes

적용 대상