internal NextJob(PDFTextExtractor pdf_text_extractor, Job job, bool is_group, object queue_lock_reminder)
            {
                this.pdf_text_extractor = pdf_text_extractor;
                this.job      = job;
                this.is_group = is_group;

                pdf_text_extractor.RecordThatJobHasStarted_LOCK(this, queue_lock_reminder);
            }
Example #2
0
            protected virtual void Dispose(bool disposing)
            {
                Logging.Debug("NextJob::Dispose({0}) @{1}", disposing, dispose_count);

                WPFDoEvents.SafeExec(() =>
                {
                    if (dispose_count == 0)
                    {
                        // Notify that this job is done...
                        pdf_text_extractor.RecordThatJobHasCompleted(this);

                        //job?.Clear();
                    }
                });

                WPFDoEvents.SafeExec(() =>
                {
                    pdf_text_extractor = null;
                    job = null;
                });

                ++dispose_count;
            }
            protected virtual void Dispose(bool disposing)
            {
                Logging.Debug("NextJob::Dispose({0}) @{1}", disposing, dispose_count);

                try
                {
                    if (dispose_count == 0)
                    {
                        // Notify that this job is done...
                        pdf_text_extractor.RecordThatJobHasCompleted(this);

                        //job?.Clear();
                    }

                    pdf_text_extractor = null;
                    job = null;
                }
                catch (Exception ex)
                {
                    Logging.Error(ex);
                }

                ++dispose_count;
            }