Пример #1
0
        private void processRequestAsync(TcpClient client)
        {
            WaitCallback callback = state =>
              {
            try {
              AcceptWebSocket (client.GetWebSocketContext (_secure, _cert));
            }
            catch (Exception ex)
            {
              client.Close ();
              _logger.Fatal (ex.Message);
            }
              };

              ThreadPool.QueueUserWorkItem (callback);
        }