HttpContextBase.AcceptWebSocketRequest Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Se implementato in una classe derivata, accetta una AspNetWebSocket richiesta.
Overload
| Nome | Descrizione |
|---|---|
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>) |
Se implementato in una classe derivata, accetta una AspNetWebSocket richiesta usando la funzione utente specificata. |
| AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions) |
Se implementato in una classe derivata, accetta una AspNetWebSocket richiesta usando la funzione utente e l'oggetto opzioni specificati. |
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>)
Se implementato in una classe derivata, accetta una AspNetWebSocket richiesta usando la funzione utente specificata.
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))
Parametri
- userFunc
- Func<AspNetWebSocketContext,Task>
Funzione utente.
Si applica a
AcceptWebSocketRequest(Func<AspNetWebSocketContext,Task>, AspNetWebSocketOptions)
Se implementato in una classe derivata, accetta una AspNetWebSocket richiesta usando la funzione utente e l'oggetto opzioni specificati.
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)
Parametri
- userFunc
- Func<AspNetWebSocketContext,Task>
Funzione utente.
- options
- AspNetWebSocketOptions
Oggetto options.