Partager via


WebSocketAcceptAdapter Constructeur

Définition

Initialise une nouvelle instance de WebSocketAcceptAdapter pour un environnement OWIN.

public:
 WebSocketAcceptAdapter(System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ env, Func<Microsoft::AspNetCore::Http::WebSocketAcceptContext ^, System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^> ^ accept);
public WebSocketAcceptAdapter (System.Collections.Generic.IDictionary<string,object> env, Func<Microsoft.AspNetCore.Http.WebSocketAcceptContext,System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>> accept);
new Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter : System.Collections.Generic.IDictionary<string, obj> * Func<Microsoft.AspNetCore.Http.WebSocketAcceptContext, System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>> -> Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter
Public Sub New (env As IDictionary(Of String, Object), accept As Func(Of WebSocketAcceptContext, Task(Of WebSocket)))

Paramètres

env
IDictionary<String,Object>

Environnement OWIN.

accept
Func<WebSocketAcceptContext,Task<WebSocket>>

WebSocket accepte le délégué.

S’applique à