WebSocketAcceptAdapter Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of WebSocketAcceptAdapter for an OWIN environment.
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)))
Parameters
- env
- IDictionary<String,Object>
The OWIN environment.
- accept
- Func<WebSocketAcceptContext,Task<WebSocket>>
WebSocket accept delegate.