HubConnectionBuilderHttpExtensions.WithUrl Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
WithUrl(IHubConnectionBuilder, String) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada. |
WithUrl(IHubConnectionBuilder, Uri) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada. |
WithUrl(IHubConnectionBuilder, String, HttpTransportType) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados. |
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada. |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados. |
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada. |
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados. |
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>) |
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados. |
WithUrl(IHubConnectionBuilder, String)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- String
A URL que o HttpConnection usará.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, Uri)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- Uri
A URL que o HttpConnection usará.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, String, HttpTransportType)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- String
A URL que o HttpConnection usará.
- transports
- HttpTransportType
Uma máscara de bits combinando um ou mais valores HttpTransportType que especificam quais transportes o cliente deve usar.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- String
A URL que o HttpConnection usará.
- configureHttpConnection
- Action<HttpConnectionOptions>
O delegado que configura o HttpConnection.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- Uri
A URL que o HttpConnection usará.
- transports
- HttpTransportType
Uma máscara de bits combinando um ou mais valores HttpTransportType que especificam quais transportes o cliente deve usar.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL especificada.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- Uri
A URL que o HttpConnection usará.
- configureHttpConnection
- Action<HttpConnectionOptions>
O delegado que configura o HttpConnection.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- String
A URL que o HttpConnection usará.
- transports
- HttpTransportType
Uma máscara de bits combinando um ou mais valores HttpTransportType que especificam quais transportes o cliente deve usar.
- configureHttpConnection
- Action<HttpConnectionOptions>
O delegado que configura o HttpConnection.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.
Aplica-se a
WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)
Configura o HubConnection usar transportes baseados em HTTP para se conectar à URL e aos transportes especificados.
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
Parâmetros
- hubConnectionBuilder
- IHubConnectionBuilder
O IHubConnectionBuilder a ser configurado.
- url
- Uri
A URL que o HttpConnection usará.
- transports
- HttpTransportType
Uma máscara de bits combinando um ou mais valores HttpTransportType que especificam quais transportes o cliente deve usar.
- configureHttpConnection
- Action<HttpConnectionOptions>
O delegado que configura o HttpConnection.
Retornos
A mesma instância do IHubConnectionBuilder para encadeamento.