Share via


HttpContext.AcceptWebSocketRequest Yöntem

Tanım

bir AspNetWebSocket isteği kabul eder.

Aşırı Yüklemeler

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şlevi ve seçenekler 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 parametresidirnull.

İstek bir AspNetWebSocket istek değil.

Açıklamalar

Bu yöntemi çağırmak, yöntemin aşırı yüklenmesini AcceptWebSocketRequest çağırmaya ve parametresini options geçirmeye null eşdeğerdir.

Şunlara uygulanır

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Belirtilen kullanıcı işlevi ve seçenekler 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 parametresidirnull.

İstek bir AspNetWebSocket istek değil.

Şunlara uygulanır