StreamUpgradeBindingElement.BuildClientStreamUpgradeProvider(BindingContext) 方法

定义

基于提供的通道上下文在 StreamUpgradeProvider 的客户端上创建一个实例。Creates an instance on the client of the StreamUpgradeProvider based on the channel context provided.

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

整个通道堆栈的 BindingContextThe BindingContext for the entire channel stack.

返回

StreamUpgradeProvider

StreamUpgradeProvider实例。An instance of the StreamUpgradeProvider.

注解

此方法在打开客户端通道工厂时调用,并且提供了 StreamUpgradeProviderabstract 类的自定义实现。This method is called when opening the client channel factory and provides a custom implementation of the StreamUpgradeProviderabstract class.

BindingContext 参数用于对通道堆栈中的其他元素作出反应。The BindingContext parameter enables reacting to other elements in the channel stack.

适用于