Ejemplo n.º 1
0
 /// <summary>
 /// Raises a BackupCompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupCompressStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Compressing the backup file... ");
         Console.ResetColor();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises a BackupCompressComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupCompressComplete(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGreen;
         Console.WriteLine("done.");
         Console.ResetColor();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises a BackupTransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.WriteLine();
         Console.WriteLine("Upload complete.");
         Console.WriteLine();
         Console.ResetColor();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Raises a BackupTransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Uploading file ");
         Console.ForegroundColor = ConsoleColor.DarkYellow;
         Console.Write(e.Transfer.FileName);
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.WriteLine(" ({0})... ", e.Transfer.FileSize.ToFileSize());
         Console.ResetColor();
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Raises a BackupStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Backing up database ");
         Console.ForegroundColor = ConsoleColor.DarkYellow;
         Console.Write(e.CatalogName);
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("... ");
         Console.ResetColor();
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Raises a BackupTransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void BackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     LogMessage(false, "Completed backup of '{0}' for target '{1}' successfully.", e.CatalogName, e.Name);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Raises a BackupStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void BackupStart(object sender, DatabaseTargetEventArgs e)
 {
     LogMessage(false, "Executing backup of '{0}' for target '{1}'.", e.CatalogName, e.Name);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Raises a BackupTransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Uploading file ");
         Console.ForegroundColor = ConsoleColor.DarkYellow;
         Console.Write(e.Transfer.FileName);
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.WriteLine(" ({0})... ", e.Transfer.FileSize.ToFileSize());
         Console.ResetColor();
     }
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Raises a BackupTransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferProgress(object sender, DatabaseTargetEventArgs e)
 {
     OnTransferProgress(e.Transfer);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Raises a BackupTransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.WriteLine();
         Console.WriteLine("Upload complete.");
         Console.WriteLine();
         Console.ResetColor();
     }
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Raises a BackupStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Backing up database ");
         Console.ForegroundColor = ConsoleColor.DarkYellow;
         Console.Write(e.CatalogName);
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("... ");
         Console.ResetColor();
     }
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Raises a BackupCompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupCompressStart(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGray;
         Console.Write("Compressing the backup file... ");
         Console.ResetColor();
     }
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Raises a BackupCompressComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupCompressComplete(object sender, DatabaseTargetEventArgs e)
 {
     lock (SThreeQLConsole.SyncRoot)
     {
         Console.ForegroundColor = ConsoleColor.DarkGreen;
         Console.WriteLine("done.");
         Console.ResetColor();
     }
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Raises a BackupTransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void BackupTransferProgress(object sender, DatabaseTargetEventArgs e)
 {
     OnTransferProgress(e.Transfer);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Raises a BackupTransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void BackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     LogMessage(false, "Completed backup of '{0}' for target '{1}' successfully.", e.CatalogName, e.Name);
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Raises a BackupStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void BackupStart(object sender, DatabaseTargetEventArgs e)
 {
     LogMessage(false, "Executing backup of '{0}' for target '{1}'.", e.CatalogName, e.Name);
 }