SecurityBindingElement.BuildChannelListener<TChannel> 方法

定義

根據傳入的 SecurityBindingElement 設定和繫結內容建立通道接聽程式。

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)

類型參數

TChannel

通道接聽程式的型別。

參數

傳回

以傳入的 SecurityBindingElement 設定和繫結內容為基礎的通道接聽程式。

例外狀況

contextnull

不支援 TChannel 型別的通道。

備註

所建立的通道處理站是 SOAP 訊息安全性通道接聽程式,其內部具有對應至繫結內容之通道接聽程式的參考 (包括傳輸通道接聽程式)。

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

適用於