HttpContextWrapper.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
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin