private void StartLockMouse(SocketSession session)
 {
     for (int i = 0; i < _request.LockSeconds; i++)
     {
         if (!_isRunning)
         {
             break;
         }
         for (int j = 0; j < 100; j++)
         {
             MouseOpeUtil.MouseMove(0, 0);
             Thread.Sleep(10);
         }
     }
     _isRunning = false;
     _request   = null;
 }
 public override void Handle(SocketSession session, ePacketType reqType, object reqObj)
 {
     if (reqType == ePacketType.PACKET_LOCK_MOUSE_REQUEST)
     {
         // 开始
         var req = reqObj as RequestLockMouse;
         if (_request == null)
         {
             _request   = req;
             _isRunning = true;
             RunTaskThread(StartLockMouse, session);
         }
         else
         {
             return;
         }
     }
     else if (reqType == ePacketType.PACKET_UNLOCK_MOUSE_REQUEST)
     {
         // 停止
         _isRunning = false;
     }
 }