HttpContextBase.AcceptWebSocketRequest Yöntem

Tanım

Türetilmiş bir sınıfta uygulandığında bir AspNetWebSocket isteği kabul eder.

Aşırı Yüklemeler

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Türetilmiş bir sınıfta uygulandığında, belirtilen kullanıcı işlevini kullanarak bir AspNetWebSocket isteği kabul eder.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Türetilmiş bir sınıfta uygulandığında, belirtilen kullanıcı işlevini ve options nesnesini kullanarak bir AspNetWebSocket isteği kabul eder.

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)

Türetilmiş bir sınıfta uygulandığında, belirtilen kullanıcı işlevini kullanarak bir AspNetWebSocket isteği kabul eder.

public:
 virtual void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc);
public virtual void AcceptWebSocketRequest (Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc);
abstract member AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unit
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> -> unit
Public Overridable Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task))

Parametreler

userFunc
Func<AspNetWebSocketContext,Task>

Kullanıcı işlevi.

Şunlara uygulanır

AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)

Türetilmiş bir sınıfta uygulandığında, belirtilen kullanıcı işlevini ve options nesnesini kullanarak bir AspNetWebSocket isteği kabul eder.

public:
 virtual void AcceptWebSocketRequest(Func<System::Web::WebSockets::AspNetWebSocketContext ^, System::Threading::Tasks::Task ^> ^ userFunc, System::Web::WebSockets::AspNetWebSocketOptions ^ options);
public virtual void AcceptWebSocketRequest (Func<System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task> userFunc, System.Web.WebSockets.AspNetWebSocketOptions options);
abstract member AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unit
override this.AcceptWebSocketRequest : Func<System.Web.WebSockets.AspNetWebSocketContext, System.Threading.Tasks.Task> * System.Web.WebSockets.AspNetWebSocketOptions -> unit
Public Overridable Sub AcceptWebSocketRequest (userFunc As Func(Of AspNetWebSocketContext, Task), options As AspNetWebSocketOptions)

Parametreler

userFunc
Func<AspNetWebSocketContext,Task>

Kullanıcı işlevi.

options
AspNetWebSocketOptions

Options nesnesi.

Şunlara uygulanır