Udostępnij za pośrednictwem


WebSocketMiddlewareExtensions.UseWebSockets Metoda

Definicja

Przeciążenia

UseWebSockets(IApplicationBuilder)

Dodaje element WebSocketMiddleware do potoku żądania.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Dodaje element WebSocketMiddleware do potoku żądania.

UseWebSockets(IApplicationBuilder)

Źródło:
WebSocketMiddlewareExtensions.cs
Źródło:
WebSocketMiddlewareExtensions.cs

Dodaje element WebSocketMiddleware do potoku żądania.

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

Parametry

app
IApplicationBuilder

Element do skonfigurowania IApplicationBuilder .

Zwraca

Element IApplicationBuilder.

Dotyczy

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Źródło:
WebSocketMiddlewareExtensions.cs
Źródło:
WebSocketMiddlewareExtensions.cs

Dodaje element WebSocketMiddleware do potoku żądania.

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

Parametry

app
IApplicationBuilder

Element do skonfigurowania IApplicationBuilder .

options
WebSocketOptions

Element WebSocketOptions , który ma być używany dla .WebSocketMiddleware

Zwraca

Element IApplicationBuilder.

Dotyczy