Esempio n. 1
0
 public ArchivingProcess(string path, int maxArchivingInterval, bool usedFtp, string login, string password)
 {
     if (usedFtp)
     {
         archiving = new ArchivingToFtp(path, LocalFolder, maxArchivingInterval, login, password);
     }
     else
     {
         archiving = new ArchivingToFolder(path, LocalFolder, maxArchivingInterval);
     }
     trackingResultFiles = new TrackingResultFiles(archiving, 1);
     trackingResultFiles.SuccessfulSaveEvent += (obj, e) => SuccessfulCopyToServerEvent?.Invoke(this, new EventArgs());
 }
 public TrackingResultFiles(Archiving archiving, int trackinIntervalInMinutes)
 {
     this.archiving = archiving;
     interval       = Convert.ToDouble(trackinIntervalInMinutes * 60000);
 }