Exemplo n.º 1
0
        /// <summary>
        /// Remove the backup destination
        /// </summary>
        /// <param name="destination">The backup destination</param>
        public void RemoveBackupDestination(BackupDestination destination)
        {
            if (!this.destinations.Contains(destination))
            {
                throw new DomainException("The backup destination does not exist in this configuration");
            }

            this.destinations.Remove(destination);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add the backup destination
        /// </summary>
        /// <param name="destination">The backup destination</param>
        public void AddBackupDestination(BackupDestination destination)
        {
            if (this.destinations.Contains(destination))
            {
                throw new DomainException("Backup destination already exists in this configuration!");
            }

            this.destinations.Add(destination);
        }
Exemplo n.º 3
0
 public SyncAction(
     BackupSource source,
     BackupDestination destination,
     SyncActionType actionType,
     File sourceFile,
     File destinationFile)
 {
     this.Source          = source;
     this.Destination     = destination;
     this.Action          = actionType;
     this.SourceFile      = sourceFile;
     this.DestinationFile = destinationFile;
 }