예제 #1
0
 void m_asyncManager_WorkerProgress(object sender, WorkerProgressEventArgs <object> e)
 {
     if (m_workProgress != null)
     {
         m_workProgress(e.ProgressData);
     }
 }
예제 #2
0
        /// <summary>
        /// Sub called by the worker to signal a progression
        /// </summary>
        /// <param name="progressData">
        /// Progression data (if any)
        /// </param>
        /// <remarks></remarks>
        internal void WorkerProgressInternalSignal(TProgressType progressData)
        {
            //Prepare and raise the event for the owner to process
            var e = new WorkerProgressEventArgs <TProgressType>(Identity, progressData);

            if (WorkerProgress != null)
            {
                WorkerProgress(this, e);
            }
        }