SecurityBindingElement.BuildChannelListenerCore<TChannel> 方法

定義

當實作時會建立指定型別的通道接聽程式。

protected:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel abstract System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListenerCore(System::ServiceModel::Channels::BindingContext ^ context);
protected abstract System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListenerCore<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListenerCore : 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)
Protected MustOverride Function BuildChannelListenerCore(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

類型參數

TChannel

通道接聽程式的型別。

參數

context
BindingContext

BindingContext 物件。

傳回

IChannelListener<TChannel>

指定型別的通道接聽程式。

例外狀況

contextnull

不支援 TChannel 型別的通道。

備註

BuildChannelListener執行錯誤檢查時,會呼叫這個方法。 當這個方法在衍生類別中實作時,它會建立通道接聽程式,而此通道接聽程式將用於建立處理此繫結之傳出訊息的通道。

適用於