HubRouteBuilder.MapHub Méthode

Définition

Surcharges

MapHub<THub>(PathString)

Mappe les requêtes entrantes avec le chemin d’accès spécifié au type spécifié Hub .

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

Mappe les requêtes entrantes avec le chemin d’accès spécifié au type spécifié Hub .

MapHub<THub>(PathString)

Mappe les requêtes entrantes avec le chemin d’accès spécifié au type spécifié Hub .

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)

Paramètres de type

THub

Type Hub auquel mapper les demandes.

Paramètres

path
PathString

chemin d'accès de la requête.

S’applique à

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

Mappe les requêtes entrantes avec le chemin d’accès spécifié au type spécifié Hub .

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))

Paramètres de type

THub

Type Hub auquel mapper les demandes.

Paramètres

path
PathString

chemin d'accès de la requête.

configureOptions
Action<HttpConnectionDispatcherOptions>

Rappel pour configurer les options de répartiteur.

S’applique à