SignalRAppBuilderExtensions.UseSignalR Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).
Ajoute SignalR au pipeline d’exécution de requête IApplicationBuilder .
Cette méthode est obsolète et sera supprimée dans une version ultérieure. L’alternative recommandée consiste à utiliser MapHub<THub> dans Microsoft.AspNetCore.Builder.UseEndpoints (...).
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseSignalR(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::SignalR::HubRouteBuilder ^> ^ configure);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSignalR (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> configure);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSignalR (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> configure);
static member UseSignalR : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
static member UseSignalR : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseSignalR (app As IApplicationBuilder, configure As Action(Of HubRouteBuilder)) As IApplicationBuilder
Paramètres
L’IApplicationBuilderopérateur
- configure
- Action<HubRouteBuilder>
Rappel pour configurer les routes du hub.
Retours
La même instance du IApplicationBuilder pour le chaînage.
- Attributs