StreamUpgradeBindingElement.BuildClientStreamUpgradeProvider Method

Definition

Creates an instance on the client of the StreamUpgradeProvider based on the channel context provided.

C#
public abstract System.ServiceModel.Channels.StreamUpgradeProvider BuildClientStreamUpgradeProvider(System.ServiceModel.Channels.BindingContext context);

Parameters

context
BindingContext

The BindingContext for the entire channel stack.

Returns

An instance of the StreamUpgradeProvider.

Remarks

This method is called when opening the client channel factory and provides a custom implementation of the StreamUpgradeProvider abstract class.

The BindingContext parameter enables reacting to other elements in the channel stack.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1