WebSocketAcceptAdapter Konstruktor

Definice

Inicializuje novou instanci WebSocketAcceptAdapter pro prostředí 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)))

Parametry

env
IDictionary<String,Object>

Prostředí OWIN.

accept
Func<WebSocketAcceptContext,Task<WebSocket>>

Protokol WebSocket přijme delegáta.

Platí pro