HubConnectionBuilderHttpExtensions 類別

定義

IHubConnectionBuilder 的擴充方法。

C#
public static class HubConnectionBuilderHttpExtensions
繼承
HubConnectionBuilderHttpExtensions

方法

WithStatefulReconnect(IHubConnectionBuilder)

HttpConnectionOptions 設定為與伺服器交涉具狀態重新連線。

WithUrl(IHubConnectionBuilder, String)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL。

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL。

WithUrl(IHubConnectionBuilder, String, HttpTransportType)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, Uri)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL。

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL。

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)

HubConnection 設定為使用 HTTP 型傳輸來連線到指定的 URL 和傳輸。

適用於

產品 版本
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0