Compartilhar via


WebSocketMiddlewareExtensions.UseWebSockets Método

Definição

Sobrecargas

UseWebSockets(IApplicationBuilder)

Adiciona o WebSocketMiddleware ao pipeline de solicitação.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Adiciona o WebSocketMiddleware ao pipeline de solicitação.

UseWebSockets(IApplicationBuilder)

Origem:
WebSocketMiddlewareExtensions.cs
Origem:
WebSocketMiddlewareExtensions.cs

Adiciona o WebSocketMiddleware ao pipeline de solicitação.

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

app
IApplicationBuilder

O IApplicationBuilder a ser configurado.

Retornos

O IApplicationBuilder.

Aplica-se a

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Origem:
WebSocketMiddlewareExtensions.cs
Origem:
WebSocketMiddlewareExtensions.cs

Adiciona o WebSocketMiddleware ao pipeline de solicitação.

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

app
IApplicationBuilder

O IApplicationBuilder a ser configurado.

options
WebSocketOptions

O WebSocketOptions a ser usado para o WebSocketMiddleware.

Retornos

O IApplicationBuilder.

Aplica-se a