Ejemplo n.º 1
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;
            }
 public void Dispose()
 {
     // Notify that this job is done...
     pdf_text_extractor.RecordThatJobHasCompleted(this);
 }