다음을 통해 공유


MsmqIntegrationBindingElement.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입니다.

반환

IChannelFactory<TChannel>

메시지를 기존 MSMQ 애플리케이션으로 보내는 채널을 만드는 데 사용할 수 있는 MSMQ 통합 채널 팩터리입니다.

예외

컨텍스트 값이 null인 경우

TChannelIOutputChannel이 아닌 경우

ExactlyOncetrue이고 Durablefalse인 경우

또는

CustomDeadLetterQueue가 null이 아니고 DeadLetterQueue가 Custom이 아닌 경우

또는

Windows 2003/XP에서 DeadLetterQueue가 Custom으로 설정되어 있는 경우

또는

ExactlyOnce가 false이고 DeadLetterQueue는 Custom인 경우

또는

CustomDeadLetterQueue가 설정되어 있고 큐에 쓸 수 있는 쓰기 권한이 없는 경우 또는 큐가 없는 경우

또는

CustomDeadLetterQueue가 비트랜잭션인 경우

또는

MsmqAuthenticationMode가 WindowsDomain으로 설정되어 있고 MSMQ가 ActiveDirectory 통합 없이 설치된 경우

또는

MsmqAuthenticationMode가 None이고 MsmqProtectionLevel이 None이 아닌 경우

또는

MsmqAuthenticationMode가 Certificate이거나 WindowsDomain이고 MsmqProtectionLevel이 None인 경우

설명

이 메서드는 개발자가 클라이언트 채널을 만들어 서비스와 통신할 수 있도록 하는 채널 팩터리를 빌드합니다. 채널 팩터리는 채널이 아니지만 팩터리로 채널을 만들 수 있습니다. IChannelFactory<TChannel>.CreateChannel을 호출하여 채널을 만듭니다.

적용 대상