StreamUpgradeProvider.CreateUpgradeInitiator(EndpointAddress, Uri) 方法

定义

创建 StreamUpgradeInitiator 的实例。

public:
 abstract System::ServiceModel::Channels::StreamUpgradeInitiator ^ CreateUpgradeInitiator(System::ServiceModel::EndpointAddress ^ remoteAddress, Uri ^ via);
public abstract System.ServiceModel.Channels.StreamUpgradeInitiator CreateUpgradeInitiator (System.ServiceModel.EndpointAddress remoteAddress, Uri via);
abstract member CreateUpgradeInitiator : System.ServiceModel.EndpointAddress * Uri -> System.ServiceModel.Channels.StreamUpgradeInitiator
Public MustOverride Function CreateUpgradeInitiator (remoteAddress As EndpointAddress, via As Uri) As StreamUpgradeInitiator

参数

remoteAddress
EndpointAddress

通道的终结点地址。

via
Uri

Via URI(一个中间 URI,通信可以通过它进行路由)的地址。

返回

返回 StreamUpgradeInitiator 的一个实例。

注解

此方法为该升级提供程序创建关联的 StreamUpgradeInitiator,用于在提供的终结点处为匹配的 StreamUpgradeAcceptor 创建升级请求。

适用于