Exemplo n.º 1
0
 /// <summary>
 /// Fire <see cref="JobEnd"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnJobEnd( QuickIOTransferJobEndEventArgs args )
 {
     if ( JobEnd != null )
     {
         JobEnd( this, args );
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Fires <see cref="RunRaised"/>
        /// </summary>
        protected virtual void OnEnd( DateTime started, DateTime finished )
        {
            QuickIOTransferJobEndEventArgs args = null;
            if ( End != null )
            {
                args = new QuickIOTransferJobEndEventArgs( this, started, finished );
                End( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferJobEndEventArgs( this, started, finished );
                }
                Observer.OnJobEnd( args );
            }
        }