/// <summary> /// Fire <see cref="JobRun"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnJobRun( QuickIOTransferJobRunEventArgs args ) { if ( JobRun != null ) { JobRun( this, args ); } }
/// <summary> /// Fires <see cref="RunRaised"/> /// </summary> protected virtual void OnRun( DateTime started ) { QuickIOTransferJobRunEventArgs args = null; if ( RunRaised != null ) { args = new QuickIOTransferJobRunEventArgs( this, started ); RunRaised( this, args ); } if ( Observer != null ) { if ( args == null ) { args = new QuickIOTransferJobRunEventArgs( this, started ); } Observer.OnJobRun( args ); } }