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 参数允许对通道堆栈中的其他元素做出反应。

适用于