HubRouteBuilder.MapHub Methode

Definition

Überlädt

MapHub<THub>(PathString)

Ordnet eingehende Anforderungen mit dem angegebenen Pfad dem angegebenen Hub Typ zu.

MapHub<THub>(PathString, Action<HttpConnectionDispatcherOptions>)

Ordnet eingehende Anforderungen mit dem angegebenen Pfad dem angegebenen Hub Typ zu.

MapHub<THub>(PathString)

Ordnet eingehende Anforderungen mit dem angegebenen Pfad dem angegebenen Hub Typ zu.

public:
generic <typename THub>
 where THub : Microsoft::AspNetCore::SignalR::Hub void MapHub(Microsoft::AspNetCore::Http::PathString path);
public void MapHub<THub> (Microsoft.AspNetCore.Http.PathString path) where THub : Microsoft.AspNetCore.SignalR.Hub;
member this.MapHub : Microsoft.AspNetCore.Http.PathString -> unit (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)
Public Sub MapHub(Of THub As Hub) (path As PathString)

Typparameter

THub

Der Hub Typ, dem Anforderungen zugeordnet werden sollen.

Parameter

path
PathString

Der Anforderungspfad.

Gilt für:

MapHub<THub>(PathString, Action<HttpConnectionDispatcherOptions>)

Ordnet eingehende Anforderungen mit dem angegebenen Pfad dem angegebenen Hub Typ zu.

public:
generic <typename THub>
 where THub : Microsoft::AspNetCore::SignalR::Hub void MapHub(Microsoft::AspNetCore::Http::PathString path, Action<Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^> ^ configureOptions);
public void MapHub<THub> (Microsoft.AspNetCore.Http.PathString path, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> configureOptions) where THub : Microsoft.AspNetCore.SignalR.Hub;
member this.MapHub : Microsoft.AspNetCore.Http.PathString * Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> -> unit (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)
Public Sub MapHub(Of THub As Hub) (path As PathString, configureOptions As Action(Of HttpConnectionDispatcherOptions))

Typparameter

THub

Der Hub Typ, dem Anforderungen zugeordnet werden sollen.

Parameter

path
PathString

Der Anforderungspfad.

configureOptions
Action<HttpConnectionDispatcherOptions>

Ein Rückruf zum Konfigurieren von Dispatcheroptionen.

Gilt für: