WebSocketMiddlewareExtensions.UseWebSockets Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseWebSockets(IApplicationBuilder) |
Menambahkan ke WebSocketMiddleware alur permintaan. |
UseWebSockets(IApplicationBuilder, WebSocketOptions) |
Menambahkan ke WebSocketMiddleware alur permintaan. |
UseWebSockets(IApplicationBuilder)
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
untuk IApplicationBuilder mengonfigurasi.
Mengembalikan
Berlaku untuk
UseWebSockets(IApplicationBuilder, WebSocketOptions)
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
untuk IApplicationBuilder mengonfigurasi.
- options
- WebSocketOptions
yang WebSocketOptions akan digunakan untuk WebSocketMiddleware.