HubConnectionBuilderHttpExtensions.WithUrl 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WithUrl(IHubConnectionBuilder, String) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。 |
WithUrl(IHubConnectionBuilder, Uri) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。 |
WithUrl(IHubConnectionBuilder, String, HttpTransportType) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。 |
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。 |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。 |
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。 |
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。 |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>) |
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。 |
WithUrl(IHubConnectionBuilder, String)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- String
将使用的 HttpConnection URL。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, Uri)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- Uri
将使用的 HttpConnection URL。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, String, HttpTransportType)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, transports As HttpTransportType) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- String
将使用的 HttpConnection URL。
- transports
- HttpTransportType
一个位掩码,该位掩码组合了一个或多个 HttpTransportType 值,这些值指定客户端应使用的传输内容。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- String
将使用的 HttpConnection URL。
- configureHttpConnection
- Action<HttpConnectionOptions>
用于配置 HttpConnection 的委托。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, transports As HttpTransportType) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- Uri
将使用的 HttpConnection URL。
- transports
- HttpTransportType
一个位掩码,该位掩码组合了一个或多个 HttpTransportType 值,这些值指定客户端应使用的传输内容。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- Uri
将使用的 HttpConnection URL。
- configureHttpConnection
- Action<HttpConnectionOptions>
用于配置 HttpConnection 的委托。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, System::String ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, string url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * string * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As String, transports As HttpTransportType, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- String
将使用的 HttpConnection URL。
- transports
- HttpTransportType
一个位掩码,该位掩码组合了一个或多个 HttpTransportType 值,这些值指定客户端应使用的传输内容。
- configureHttpConnection
- Action<HttpConnectionOptions>
用于配置 HttpConnection 的委托。
返回
用于链接的相同 IHubConnectionBuilder 实例。
适用于
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)
将 HubConnection 配置为使用基于 HTTP 的传输连接到指定的 URL 和传输。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ WithUrl(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Action<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ configureHttpConnection);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithUrl (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> configureHttpConnection);
static member WithUrl : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Action<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithUrl (hubConnectionBuilder As IHubConnectionBuilder, url As Uri, transports As HttpTransportType, configureHttpConnection As Action(Of HttpConnectionOptions)) As IHubConnectionBuilder
参数
- hubConnectionBuilder
- IHubConnectionBuilder
要配置的 IHubConnectionBuilder。
- url
- Uri
将使用的 HttpConnection URL。
- transports
- HttpTransportType
一个位掩码,该位掩码组合了一个或多个 HttpTransportType 值,这些值指定客户端应使用的传输内容。
- configureHttpConnection
- Action<HttpConnectionOptions>
用于配置 HttpConnection 的委托。
返回
用于链接的相同 IHubConnectionBuilder 实例。