/// <summary>
        /// Fire <see cref="WorkerPickedJob"/>
        /// </summary>
        /// <param name="threadId">affcted Worker Thread ID</param>
        /// <param name="job">picked job</param>
        private void OnWorkerPickedJob( int threadId, IQuickIOTransferJob job )
        {
            QuickIOTransferWorkerPickedJobEventArgs args = null;
            if ( WorkerPickedJob != null )
            {
                args = new QuickIOTransferWorkerPickedJobEventArgs( threadId, job );
                WorkerPickedJob( this, args );
            }

            if ( args == null )
            {
                args = new QuickIOTransferWorkerPickedJobEventArgs( threadId, job );
            }
            Observer.OnWorkerPickedJob( args );
        }
예제 #2
0
 /// <summary>
 /// Fire <see cref="WorkerPickedJob"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnWorkerPickedJob( QuickIOTransferWorkerPickedJobEventArgs args )
 {
     if ( WorkerPickedJob != null )
     {
         WorkerPickedJob( this, args );
     }
 }