protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_reader != null)
         {
             _reader.Dispose();
         }
     }
 }
Beispiel #2
0
 public virtual void Shutdown()
 {
     if (_boboReader != null)
     {
         try
         {
             _boboReader.Dispose();
         }
         catch (Exception e)
         {
             logger.Error(e.Message);
         }
     }
 }
Beispiel #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_closeReader)
         {
             lock (this)
             {
                 if (_reader != null)
                 {
                     try
                     {
                         _reader.Dispose();
                         _reader = null;
                     }
                     catch (Exception ioe)
                     {
                         throw new BrowseException(ioe.Message, ioe);
                     }
                 }
             }
         }
     }
 }