Aracılığıyla paylaş


HttpContextWrapper.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ş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:
 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))

Parametreler

userFunc
Func<AspNetWebSocketContext,Task>

Kullanıcı işlevi.

Özel durumlar

userFunc parametresidirnull.

İstek bir AspNetWebSocket istek değil.

Şunlara uygulanır

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Belirtilen kullanıcı işlevini ve options nesnesini kullanarak bir AspNetWebSocket isteği kabul eder.

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)

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