Ejemplo n.º 1
0
 void FileReceivingEvents_FileTransDisruptted(TransferingProject transmittingFileInfo, FileTransDisrupttedType fileTransDisrupttedType)
 {
     //删除已经更新的文件
     string sourcePath = AppDomain.CurrentDomain.BaseDirectory + "temp\\";
     ESBasic.Helpers.FileHelper.DeleteDirectory(sourcePath);
     if (this.UpdateDisruptted != null)
     {
         this.UpdateDisruptted(fileTransDisrupttedType.ToString());
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// File transmission disruptted.
        /// </summary>
        /// <param name="transmittingFileInfo">transmitting file information</param>
        /// <param name="fileTransDisrupttedType">file transmission disruptted type</param>
        void FileReceivingEvents_FileTransDisruptted(TransferingProject transmittingFileInfo, FileTransDisrupttedType fileTransDisrupttedType)
        {
            if (fileTransDisrupttedType == FileTransDisrupttedType.SelfOffline)
            {
                return;
            }
            string sourcePath = AppDomain.CurrentDomain.BaseDirectory + "temp\\";

            FileHelper.DeleteDirectory(sourcePath);
            Event_UpdateDisruptted?.Invoke(fileTransDisrupttedType.ToString());
        }