private void StartAcceptWebSocket(WebContext webContext) { webContext.AcceptWebSocketAsync().ContinueWith(task => OnWebSocketAccepted(webContext, task)); }