Udostępnij za pośrednictwem


BindingContext.BuildInnerChannelListener<TChannel> Metoda

Definicja

Tworzy odbiornik kanału wewnętrznego, który nasłuchuje określonego typu kanału.

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)

Parametry typu

TChannel

Typ obiektu, dla którego nasłuchuje odbiornik kanału wewnętrznego IChannel .

Zwraca

Typ IChannelListener<TChannel>IChannel reprezentujący wewnętrzny odbiornik kanału bieżącej fabryki kanałów.

Przykłady

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)()

Dotyczy