Condividi tramite


WebSocketMiddlewareExtensions.UseWebSockets Metodo

Definizione

Overload

UseWebSockets(IApplicationBuilder)

Aggiunge alla WebSocketMiddleware pipeline di richiesta.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Aggiunge alla WebSocketMiddleware pipeline di richiesta.

UseWebSockets(IApplicationBuilder)

Origine:
WebSocketMiddlewareExtensions.cs
Origine:
WebSocketMiddlewareExtensions.cs

Aggiunge alla WebSocketMiddleware pipeline di richiesta.

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

Parametri

app
IApplicationBuilder

Oggetto IApplicationBuilder da configurare.

Restituisce

Oggetto IApplicationBuilder.

Si applica a

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Origine:
WebSocketMiddlewareExtensions.cs
Origine:
WebSocketMiddlewareExtensions.cs

Aggiunge alla WebSocketMiddleware pipeline di richiesta.

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

Parametri

app
IApplicationBuilder

Oggetto IApplicationBuilder da configurare.

options
WebSocketOptions

Oggetto WebSocketOptions da utilizzare per l'oggetto WebSocketMiddleware.

Restituisce

Oggetto IApplicationBuilder.

Si applica a