Partager via


WebSocketMiddlewareExtensions.UseWebSockets Méthode

Définition

Surcharges

UseWebSockets(IApplicationBuilder)

Ajoute au WebSocketMiddleware pipeline de requête.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Ajoute au WebSocketMiddleware pipeline de requête.

UseWebSockets(IApplicationBuilder)

Source:
WebSocketMiddlewareExtensions.cs
Source:
WebSocketMiddlewareExtensions.cs

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

Retours

L’IApplicationBuilderopérateur

S’applique à

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Source:
WebSocketMiddlewareExtensions.cs
Source:
WebSocketMiddlewareExtensions.cs

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

Retours

L’IApplicationBuilderopérateur

S’applique à