BindingContext.BuildInnerChannelListener<TChannel> 메서드

정의

지정된 채널 형식에 대해 수신하는 내부 채널 수신기를 생성합니다.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildInnerChannelListener();
public System.ServiceModel.Channels.IChannelListener<TChannel> BuildInnerChannelListener<TChannel> () where TChannel : class, System.ServiceModel.Channels.IChannel;
member this.BuildInnerChannelListener : unit -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Function BuildInnerChannelListener(Of TChannel As {Class, IChannel}) () As IChannelListener(Of TChannel)

형식 매개 변수

TChannel

내부 채널 수신기에서 수신하는 IChannel 개체의 형식입니다.

반환

IChannelListener<TChannel>

현재 채널 팩터리에 대한 내부 채널 수신기를 나타내는 IChannelListener<TChannel> 형식의 IChannel입니다.

예제

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.BuildInnerChannelListener<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.BuildInnerChannelListener(Of IDuplexChannel)()

적용 대상