WebSocketMiddlewareExtensions.UseWebSockets 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.
Surcharges
UseWebSockets(IApplicationBuilder) |
Ajoute au WebSocketMiddleware pipeline de requête. |
UseWebSockets(IApplicationBuilder, WebSocketOptions) |
Ajoute au WebSocketMiddleware pipeline de requête. |
UseWebSockets(IApplicationBuilder)
Ajoute au WebSocketMiddleware pipeline de requête.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder) As IApplicationBuilder
Paramètres
IApplicationBuilder à configurer.
Retours
L’IApplicationBuilderopérateur
S’applique à
UseWebSockets(IApplicationBuilder, WebSocketOptions)
Ajoute au WebSocketMiddleware pipeline de requête.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::WebSocketOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.WebSocketOptions options);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.WebSocketOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder, options As WebSocketOptions) As IApplicationBuilder
Paramètres
IApplicationBuilder à configurer.
- options
- WebSocketOptions
WebSocketOptions à utiliser pour .WebSocketMiddleware
Retours
L’IApplicationBuilderopérateur