CompositeDuplexBindingElement.BuildChannelListener<TChannel> Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengembalikan pendengar saluran yang dapat menerima saluran dupleks komposit.
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
Yang IChannel diterima pendengar.
Parameter
- context
- BindingContext
BindingContext yang menyediakan konteks yang diperlukan untuk membangun pendengar saluran.
Mengembalikan
Yang IChannelListener<TChannel> menerima saluran dupleks komposit jenis TChannel
.
Pengecualian
context
adalah null
.
Tipenya TChannel
tidak berjenis IInputChannel dan tidak didukung.
Keterangan
Konteks build memerlukan IInputChannel untuk TChannel
.