WebSocketMiddlewareExtensions.UseWebSockets Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
UseWebSockets(IApplicationBuilder) |
Agrega a WebSocketMiddleware la canalización de solicitudes. |
UseWebSockets(IApplicationBuilder, WebSocketOptions) |
Agrega a WebSocketMiddleware la canalización de solicitudes. |
UseWebSockets(IApplicationBuilder)
Agrega a WebSocketMiddleware la canalización de solicitudes.
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
Parámetros
El objeto IApplicationBuilder que se va a configurar.
Devoluciones
Se aplica a
UseWebSockets(IApplicationBuilder, WebSocketOptions)
Agrega a WebSocketMiddleware la canalización de solicitudes.
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
Parámetros
El objeto IApplicationBuilder que se va a configurar.
- options
- WebSocketOptions
que WebSocketOptions se va a usar para .WebSocketMiddleware