WebSocketMiddlewareExtensions.UseWebSockets Метод

Определение

Перегрузки

UseWebSockets(IApplicationBuilder)

Добавляет в WebSocketMiddleware конвейер запроса.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Добавляет в WebSocketMiddleware конвейер запроса.

UseWebSockets(IApplicationBuilder)

Исходный код:
WebSocketMiddlewareExtensions.cs
Исходный код:
WebSocketMiddlewareExtensions.cs

Добавляет в WebSocketMiddleware конвейер запроса.

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

Параметры

app
IApplicationBuilder

IApplicationBuilder для настройки.

Возвращаемое значение

IApplicationBuilder.

Применяется к

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Исходный код:
WebSocketMiddlewareExtensions.cs
Исходный код:
WebSocketMiddlewareExtensions.cs

Добавляет в WebSocketMiddleware конвейер запроса.

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

Параметры

app
IApplicationBuilder

IApplicationBuilder для настройки.

options
WebSocketOptions

Объект , WebSocketOptions используемый WebSocketMiddlewareдля .

Возвращаемое значение

IApplicationBuilder.

Применяется к