Exemplo n.º 1
0
        public void SaveAD(ADInfo info)
        {
            if (Path == null)
                return;
            if (ADFile == null)
            {
                ADFile = new PingFile(ProjectName,"ad");
                ADFile.SetPath(new DirectoryInfo(Path));
                ADFile.Create(info.PingNum);
                ADFile.Write(info.SavePackage());
                return;
            }
            if (ADFile.PingID != info.PingNum) //新的ping号
            {
                ADFile.Close();
                ADFile.Create(info.PingNum);

            }
            ADFile.Write(info.SavePackage());
        }
 public void SaveAD(ADInfo adInfo)
 {
     TraceFile.Instance.SaveAD(adInfo);
 }