/// <summary> /// Fire <see cref="JobError"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnJobError( QuickIOTransferJobErrorEventArgs args ) { if ( JobError != null ) { JobError( this, args ); } }
/// <summary> /// Fires <see cref="Error"/> /// </summary> protected virtual void OnError( Exception e ) { QuickIOTransferJobErrorEventArgs args = null; if ( Error != null ) { args = new QuickIOTransferJobErrorEventArgs( this, e ); Error( this, args ); } if ( Observer != null ) { if ( args == null ) { args = new QuickIOTransferJobErrorEventArgs( this, e ); } Observer.OnJobError( args ); } }