/// <summary> /// Fires <see cref="Error"/> /// </summary> /// <param name="e"></param> protected override void OnError( Exception e ) { // base throw not important //base.OnError( e ); QuickIOTransferDirectoryCreationErrorEventArgs args = null; if ( Error != null ) { args = new QuickIOTransferDirectoryCreationErrorEventArgs( this, DirectoryToCreatePath, e ); Error( this, args ); } if ( Observer != null ) { if ( args == null ) { args = new QuickIOTransferDirectoryCreationErrorEventArgs( this, DirectoryToCreatePath, e ); } Observer.OnDirectoryCreationError( args ); } }
/// <summary> /// Fire <see cref="DirectoryCreationError"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnDirectoryCreationError( QuickIOTransferDirectoryCreationErrorEventArgs args ) { if ( DirectoryCreationError != null ) { DirectoryCreationError( this, args ); } }