StreamUpgradeBindingElement.BuildClientStreamUpgradeProvider 方法

定义

基于提供的通道上下文在 StreamUpgradeProvider 的客户端上创建实例。

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

参数

context
BindingContext

整个通道堆栈的 BindingContext

返回

StreamUpgradeProvider的实例。

注解

打开客户端通道工厂并提供 StreamUpgradeProviderabstract 类的自定义实现时调用此方法。

BindingContext 参数允许对通道堆栈中的其他元素做出反应。

适用于