StreamUpgradeProvider.CreateUpgradeInitiator(EndpointAddress, Uri) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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 创建升级请求。