Freigeben über


HubConnectionBuilderHttpExtensions.WithUrl Methode

Definition

Überlädt

WithUrl(IHubConnectionBuilder, String)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

WithUrl(IHubConnectionBuilder, Uri)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

WithUrl(IHubConnectionBuilder, String, HttpTransportType)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

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

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

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

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

WithUrl(IHubConnectionBuilder, String)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
String

Die URL, die verwendet HttpConnection wird.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

WithUrl(IHubConnectionBuilder, Uri)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
Uri

Die URL, die verwendet HttpConnection wird.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

WithUrl(IHubConnectionBuilder, String, HttpTransportType)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
String

Die URL, die verwendet HttpConnection wird.

transports
HttpTransportType

Eine Bitmaske, die einen oder HttpTransportType mehrere Werte kombiniert, die angeben, welche Transporte der Client verwenden soll.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
String

Die URL, die verwendet HttpConnection wird.

configureHttpConnection
Action<HttpConnectionOptions>

Der Delegat, der die HttpConnection-Schnittstelle konfiguriert.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
Uri

Die URL, die verwendet HttpConnection wird.

transports
HttpTransportType

Eine Bitmaske, die einen oder HttpTransportType mehrere Werte kombiniert, die angeben, welche Transporte der Client verwenden soll.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte zum Herstellen einer Verbindung mit der angegebenen URL verwendet werden.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
Uri

Die URL, die verwendet HttpConnection wird.

configureHttpConnection
Action<HttpConnectionOptions>

Der Delegat, der die HttpConnection-Schnittstelle konfiguriert.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

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

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
String

Die URL, die verwendet HttpConnection wird.

transports
HttpTransportType

Eine Bitmaske, die einen oder HttpTransportType mehrere Werte kombiniert, die angeben, welche Transporte der Client verwenden soll.

configureHttpConnection
Action<HttpConnectionOptions>

Der Delegat, der die HttpConnection-Schnittstelle konfiguriert.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für:

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

Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs
Quelle:
HubConnectionBuilderHttpExtensions.cs

Konfiguriert die so, dass HubConnection HTTP-basierte Transporte verwendet werden, um eine Verbindung mit der angegebenen URL und den angegebenen Transporten herzustellen.

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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

url
Uri

Die URL, die verwendet HttpConnection wird.

transports
HttpTransportType

Eine Bitmaske, die einen oder HttpTransportType mehrere Werte kombiniert, die angeben, welche Transporte der Client verwenden soll.

configureHttpConnection
Action<HttpConnectionOptions>

Der Delegat, der die HttpConnection-Schnittstelle konfiguriert.

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für: