WebSocketAcceptAdapter Costruttore

Definizione

Inizializza una nuova istanza di WebSocketAcceptAdapter per un ambiente 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)))

Parametri

env
IDictionary<String,Object>

Ambiente OWIN.

accept
Func<WebSocketAcceptContext,Task<WebSocket>>

WebSocket accettare il delegato.

Si applica a