SignalRAppBuilderExtensions.UseSignalR Méthode

Définition

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

configure
Action<HubRouteBuilder>

Rappel pour configurer les routes du hub.

Retours

La même instance du IApplicationBuilder pour le chaînage.

Attributs

S’applique à