共用方式為


StreamUpgradeBindingElement.BuildServerStreamUpgradeProvider 方法

定義

根據提供的通道內容,在 StreamUpgradeProvider 的伺服器上建立實例。

public:
 abstract System::ServiceModel::Channels::StreamUpgradeProvider ^ BuildServerStreamUpgradeProvider(System::ServiceModel::Channels::BindingContext ^ context);
public abstract System.ServiceModel.Channels.StreamUpgradeProvider BuildServerStreamUpgradeProvider (System.ServiceModel.Channels.BindingContext context);
abstract member BuildServerStreamUpgradeProvider : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.StreamUpgradeProvider
Public MustOverride Function BuildServerStreamUpgradeProvider (context As BindingContext) As StreamUpgradeProvider

參數

context
BindingContext

整個通道堆疊的 BindingContext

傳回

StreamUpgradeProvider的實例。

備註

開啟服務並提供 StreamUpgradeProviderabstract 類別的自定義實作時,會呼叫這個方法。

BindingContext 參數可讓您回應通道堆疊中的其他元素。

適用於