语言

Activity.IsFromStreamingConnection 方法

定义

确定活动是通过 Http/Https 连接还是 Streaming 发送的。这可以通过查看 ServiceUrl 属性来确定:(1) 所有通过 http/https 发送消息的频道都不是 streaming (2) 通过 streaming 发送消息的频道的 ServiceUrl 开头不是 http/https。

public bool IsFromStreamingConnection();
member this.IsFromStreamingConnection : unit -> bool
Public Function IsFromStreamingConnection () As Boolean

返回

如此 如果活动源自流式处理连接。

适用于