WindowsStreamSecurityBindingElement.BuildServerStreamUpgradeProvider 方法

定义

基于提供的通道上下文在 StreamUpgradeProvider 的服务器上创建一个实例。

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

参数

context
BindingContext

整个通道堆栈的 BindingContext

返回

StreamUpgradeProvider实例。

注解

此方法在生成提供程序通道侦听器时调用,并且提供了 StreamUpgradeProvider 抽象类的自定义实现。

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

适用于