Пример #1
0
 /// <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 );
     }
 }
Пример #2
0
        /// <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 );
            }
        }