IConnectionInherentKeepAliveFeature 介面

定義

指出連線傳輸是否具有「固有的保持連線」,這表示傳輸會自動通知用戶端它仍然存在。

public interface class IConnectionInherentKeepAliveFeature
public interface IConnectionInherentKeepAliveFeature
type IConnectionInherentKeepAliveFeature = interface
Public Interface IConnectionInherentKeepAliveFeature
衍生

備註

這項功能最常見的範例是 Long Polling HTTP 傳輸,因為 HTTP 限制 (,) 在特定間隔內終止每個輪詢,並傳回訊號,指出「伺服器仍在這裡,但尚未有資料」。 這項功能可讓應用程式新增 Keep-alive 功能,但僅限於沒有某種固有 Keep-alive 的傳輸。

屬性

HasInherentKeepAlive

取得連接是否具有固有的 Keep-alive 概念。

適用於