HttpTransportBindingElement.BuildChannelListener<TChannel> 메서드

정의

지정된 형식의 채널 수신기를 만듭니다.

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

채널 팩터리의 형식입니다.

매개 변수

context
BindingContext

채널 팩터리를 만드는 데 필요한 바인딩, 동작, 계약, 기타 정보를 설명하는 BindingContext 멤버입니다.

반환

IChannelListener<TChannel>

지정된 형식의 채널 수신기입니다.

예외

contextnull이 될 수 없는 경우

잘못된 인수가 전달된 경우

설명

이 메서드는 전송 바인딩 요소의 구성에 따라 메시지를 받기 위한 채널 수신기를 가져오는 데 사용할 수 있습니다.

적용 대상