Exemple #1
0
        private static bool CheckNeedDownloadFile(string locFilePath, string remoteMd5)
        {
            if (File.Exists(locFilePath))
            {
                var md5 = TUtils.ComputeMd5Hash(locFilePath);
                if (remoteMd5.Equals(md5))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemple #2
0
        public static void Test()
        {
            var procInfo = new ProcInfo();

            procInfo.FileMd5  = TUtils.ComputeMd5Hash(@"E:\BimSrv2\gisserver\webapps\gis\1.dwg");
            procInfo.FileName = "1.dwg";
            procInfo.FileUrl  = "http://127.0.0.1:8080/gis/1.dwg";

            var jsonstr = JsonConvert.SerializeObject(procInfo);

            var base64str = TUtils.EncodeForProcInfo(jsonstr);

            TCadProxy.OpenCad(base64str);
        }