Bagikan melalui


MtomMessageEncodingBindingElement.BuildChannelListener<TChannel> Metode

Definisi

Membangun tumpukan pendengar saluran pada klien yang menerima jenis saluran tertentu untuk konteks tertentu.

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)

Jenis parameter

TChannel

Jenis saluran yang diterima pendengar saluran.

Parameter

context
BindingContext

BindingContext untuk listener.

Mengembalikan

IChannelListener<TChannel> Jenis TChannel untuk konteks yang ditentukan.

Berlaku untuk