Beispiel #1
0
 /// <summary>
 /// Fires an event for this instance.
 /// </summary>
 /// <param name="handler">The event handler to fire.</param>
 /// <param name="args">The arguments to fire the event with.</param>
 private void Fire(EventHandler <DatabaseTargetEventArgs> handler, DatabaseTargetEventArgs args)
 {
     if (handler != null)
     {
         handler(this, args);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Raises a backup task's TransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnTransferStart(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferStart, e);
 }
Beispiel #3
0
 /// <summary>
 /// Raises a backup task's TransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupTransferProgress(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferProgress, e);
 }
Beispiel #4
0
 /// <summary>
 /// Raises a backup task's TransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferComplete, e);
 }
Beispiel #5
0
 /// <summary>
 /// Raises a backup task's CompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupCompressStart(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupCompressStart, e);
 }
Beispiel #6
0
 /// <summary>
 /// Raises a backup task's TransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnTransferStart(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferStart, e);
 }
Beispiel #7
0
 /// <summary>
 /// Raises a backup task's TransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupTransferProgress(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferProgress, e);
 }
Beispiel #8
0
 /// <summary>
 /// Raises a backup task's TransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupTransferComplete(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupTransferComplete, e);
 }
Beispiel #9
0
 /// <summary>
 /// Raises a backup task's CompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnBackupCompressStart(object sender, DatabaseTargetEventArgs e)
 {
     this.Fire(this.BackupCompressStart, e);
 }
Beispiel #10
0
 /// <summary>
 /// Fires an event for this instance.
 /// </summary>
 /// <param name="handler">The event handler to fire.</param>
 /// <param name="args">The arguments to fire the event with.</param>
 private void Fire(EventHandler<DatabaseTargetEventArgs> handler, DatabaseTargetEventArgs args)
 {
     if (handler != null)
     {
         handler(this, args);
     }
 }