HttpContextWrapper.AcceptWebSocketRequest 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.
AspNetWebSocket Menerima permintaan.
Overload
| Nama | Deskripsi |
|---|---|
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) |
AspNetWebSocket Menerima permintaan menggunakan fungsi pengguna yang ditentukan. |
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) |
AspNetWebSocket Menerima permintaan menggunakan fungsi pengguna dan objek opsi yang ditentukan. |
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)
AspNetWebSocket Menerima permintaan menggunakan fungsi pengguna yang ditentukan.
public:
override void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc);
public override void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc);
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unit
Public Overrides Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task))
Parameter
- userFunc
- Func<AspNetWebSocketContext,Task>
Fungsi pengguna.
Pengecualian
Parameternya userFunc adalah null.
Permintaan bukan AspNetWebSocket permintaan.
Berlaku untuk
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)
AspNetWebSocket Menerima permintaan menggunakan fungsi pengguna dan objek opsi yang ditentukan.
public:
override void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc, System::Web::WebSockets::AspNetWebSocketOptions ^ options);
public override void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc, System.Web.WebSockets.AspNetWebSocketOptions options);
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unit
Public Overrides Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task), options As AspNetWebSocketOptions)
Parameter
- userFunc
- Func<AspNetWebSocketContext,Task>
Fungsi pengguna.
- options
- AspNetWebSocketOptions
Objek opsi.
Pengecualian
Parameternya userFunc adalah null.
Permintaan bukan AspNetWebSocket permintaan.