/// <summary>
        /// Fires <see cref="Error"/>
        /// </summary>
        /// <param name="e"></param>
        protected override void OnError( Exception e )
        {
            // base throw not important
            //base.OnError( e );

            QuickIOTransferFileCreationErrorEventArgs args = null;
            if ( Error != null )
            {
                args = new QuickIOTransferFileCreationErrorEventArgs( this, TargetFullName, e );
                Error( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferFileCreationErrorEventArgs( this, TargetFullName, e );
                }
                Observer.OnFileCreationError( args );
            }
        }
示例#2
0
 /// <summary>
 /// Fire <see cref="FileCreationError"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnFileCreationError( QuickIOTransferFileCreationErrorEventArgs args )
 {
     if ( FileCreationError != null )
     {
         FileCreationError( this, args );
     }
 }