HubConnectionBuilderHttpExtensions.WithUrl Method
Definition
Overloads
WithUrl(IHubConnectionBuilder, String) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL. |
WithUrl(IHubConnectionBuilder, Uri) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL. |
WithUrl(IHubConnectionBuilder, String, HttpTransportType) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports. |
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL. |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports. |
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL. |
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports. |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>) |
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports. |
WithUrl(IHubConnectionBuilder, String)
Configures the HubConnection to use HTTP-based transports to connect to the specified 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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- String
The URL the HttpConnection will use.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, Uri)
Configures the HubConnection to use HTTP-based transports to connect to the specified 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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- Uri
The URL the HttpConnection will use.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, String, HttpTransportType)
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.
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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- String
The URL the HttpConnection will use.
- transports
- HttpTransportType
A bitmask combining one or more HttpTransportType values that specify what transports the client should use.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)
Configures the HubConnection to use HTTP-based transports to connect to the specified 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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- String
The URL the HttpConnection will use.
- configureHttpConnection
- Action<HttpConnectionOptions>
The delegate that configures the HttpConnection.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.
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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- Uri
The URL the HttpConnection will use.
- transports
- HttpTransportType
A bitmask combining one or more HttpTransportType values that specify what transports the client should use.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)
Configures the HubConnection to use HTTP-based transports to connect to the specified 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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- Uri
The URL the HttpConnection will use.
- configureHttpConnection
- Action<HttpConnectionOptions>
The delegate that configures the HttpConnection.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.
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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- String
The URL the HttpConnection will use.
- transports
- HttpTransportType
A bitmask combining one or more HttpTransportType values that specify what transports the client should use.
- configureHttpConnection
- Action<HttpConnectionOptions>
The delegate that configures the HttpConnection.
Returns
The same instance of the IHubConnectionBuilder for chaining.
Applies to
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)
Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.
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
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- url
- Uri
The URL the HttpConnection will use.
- transports
- HttpTransportType
A bitmask combining one or more HttpTransportType values that specify what transports the client should use.
- configureHttpConnection
- Action<HttpConnectionOptions>
The delegate that configures the HttpConnection.
Returns
The same instance of the IHubConnectionBuilder for chaining.