HttpContext.AcceptWebSocketRequest Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
bir AspNetWebSocket isteği kabul eder.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) |
Belirtilen kullanıcı işlevini kullanarak bir AspNetWebSocket isteği kabul eder. |
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) |
Belirtilen kullanıcı işlevini ve options nesnesini kullanarak bir AspNetWebSocket isteği kabul eder. |
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)
Belirtilen kullanıcı işlevini kullanarak bir AspNetWebSocket isteği kabul eder.
public:
void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc);
public void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc);
member this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unit
Public Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task))
Parametreler
- userFunc
- Func<AspNetWebSocketContext,Task>
Kullanıcı işlevi.
Özel durumlar
userFunc parametresi null'dir.
İstek bir AspNetWebSocket istek değil.
Açıklamalar
Bu yöntemi çağırmak yöntem aşırı yüklemesini çağırmak AcceptWebSocketRequest ve parametresi için geçirmekle nulloptions eşdeğerdir.
Şunlara uygulanır
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)
Belirtilen kullanıcı işlevini ve options nesnesini kullanarak bir AspNetWebSocket isteği kabul eder.
public:
void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc, System::Web::WebSockets::AspNetWebSocketOptions ^ options);
public void AcceptWebSocketRequest(Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc, System.Web.WebSockets.AspNetWebSocketOptions options);
member this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unit
Public Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task), options As AspNetWebSocketOptions)
Parametreler
- userFunc
- Func<AspNetWebSocketContext,Task>
Kullanıcı işlevi.
- options
- AspNetWebSocketOptions
Options nesnesi.
Özel durumlar
userFunc parametresi null'dir.
İstek bir AspNetWebSocket istek değil.