コード例 #1
0
        protected override JsonCommand DoExecute(string args)
        {
            string imgPath = bidActionManager.CaptureFullScreen();
            ScreenImageUploadResponse resp = bidActionManager.UploadFileToSaber(imgPath);

            return(null);
        }
コード例 #2
0
        protected override JsonCommand DoExecute(string args)
        {
            string infoFilePath = "/data/logs/RadarClient/info.log";

            if (!FileUtils.IsFileExist(infoFilePath))
            {
                logger.ErrorFormat("log file#{0} do not exist", infoFilePath);
                return(null);
            }


            int    clientNo = ClientService.AssignedClientNo;
            string dt       = DateTime.Now.ToString("yyyy-MM-dd");

            string zippedLogFile = "/temp/" + dt + "-" + clientNo + "-" + KK.CurrentMills() + "-info.log.gz";

            ZipUtils.Compress(zippedLogFile, infoFilePath);

            // upload
            ScreenImageUploadResponse resp = bidActionManager.UploadFileToSaber(zippedLogFile, 10);

            // FileUtils.DeleteFile(zippedLogFile);
            logger.InfoFormat("delete file#{0}", zippedLogFile);

            return(null);
        }
コード例 #3
0
        protected override JsonCommand DoExecute(string args)
        {
            string imgPath = bidActionManager.CaptureFlashScreen();
            ScreenImageUploadResponse resp = bidActionManager.UploadFileToSaber(imgPath);

            // return JsonCommands.OK(CommandDirective.CAPTURE_UPLOAD_BID_SCREEN, resp);
            return(null);
        }