示例#1
0
 /// <summary>
 /// Releases resources used by the <see cref="TrecContentSource"/> and
 /// if overridden in a derived class, optionally releases unmanaged resources.
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources;
 /// <c>false</c> to release only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DoClose();
         trecDocBuffer?.Dispose(); // LUCENENET specific
     }
 }
示例#2
0
 /// <summary>
 /// Closes the <see cref="DocMaker"/>. The base implementation closes the
 /// <see cref="ContentSource"/>, and it can be overridden to do more work (but make
 /// sure to call <c>base.Dispose(bool)</c>).
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         m_source?.Dispose();
         leftovr?.Dispose();  // LUCENENET specific
         docState?.Dispose(); // LUCENENET specific
     }
 }
示例#3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         threadBuffer.Dispose();     // LUCENENET specific: ThreadLocal is disposable
         threadNormalizer.Dispose(); // LUCENENET specific: ThreadLocal is disposable
         lineFileOut.Dispose();
     }
     base.Dispose(disposing);
 }
示例#4
0
        /// <summary>
        /// Releases resources used by the <see cref="ConsumeContentSourceTask"/> and
        /// if overridden in a derived class, optionally releases unmanaged resources.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources;
        /// <c>false</c> to release only unmanaged resources.</param>

        // LUCENENET specific
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    dd.Dispose(); // LUCENENET specific - dispose dd
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }