Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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);
 }
Пример #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);
 }
Пример #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();
     }
 }
Пример #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);
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }