WindowsStreamSecurityBindingElement.BuildClientStreamUpgradeProvider 方法

定义

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

public:
 override System::ServiceModel::Channels::StreamUpgradeProvider ^ BuildClientStreamUpgradeProvider(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.StreamUpgradeProvider BuildClientStreamUpgradeProvider (System.ServiceModel.Channels.BindingContext context);
override this.BuildClientStreamUpgradeProvider : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.StreamUpgradeProvider
Public Overrides Function BuildClientStreamUpgradeProvider (context As BindingContext) As StreamUpgradeProvider

参数

context
BindingContext

整个通道堆栈的 BindingContext

返回

StreamUpgradeProvider

StreamUpgradeProvider实例。

注解

此方法在生成客户端通道工厂时调用,并且提供了 StreamUpgradeProvider 抽象类的自定义实现。

BindingContext 参数用于对通道堆栈中的其他元素作出反应。

适用于