Bagikan melalui


WebSocketMiddlewareExtensions.UseWebSockets Metode

Definisi

Overload

UseWebSockets(IApplicationBuilder)

Menambahkan ke WebSocketMiddleware alur permintaan.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Menambahkan ke WebSocketMiddleware alur permintaan.

UseWebSockets(IApplicationBuilder)

Sumber:
WebSocketMiddlewareExtensions.cs
Sumber:
WebSocketMiddlewareExtensions.cs

Menambahkan ke WebSocketMiddleware alur permintaan.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder mengonfigurasi.

Mengembalikan

IApplicationBuilder.

Berlaku untuk

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Sumber:
WebSocketMiddlewareExtensions.cs
Sumber:
WebSocketMiddlewareExtensions.cs

Menambahkan ke WebSocketMiddleware alur permintaan.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder mengonfigurasi.

options
WebSocketOptions

yang WebSocketOptions akan digunakan untuk WebSocketMiddleware.

Mengembalikan

IApplicationBuilder.

Berlaku untuk