src/Foundation/Common/Gimela.Common.Logging/FileLog/FileLogger.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
Releases unmanaged and - optionally - managed resources
Releases unmanaged and - optionally - managed resources
protected virtual void Dispose(bool disposing)
    {
      if (disposing)
      {
        try
        {
          if (_signalQueue != null)
          {
            _signalQueue.Close();
          }
          if (_writer != null)
          {
            _writer.Flush();
            _writer.Close();
            _writer = null;
          }
        }
        catch (ObjectDisposedException ex)
        {
          System.Diagnostics.Trace.WriteLine(ex.Message);
        }
        catch (EncoderFallbackException ex)
        {
          System.Diagnostics.Trace.WriteLine(ex.Message);
        }
        catch (IOException ex)
        {
          System.Diagnostics.Trace.WriteLine(ex.Message);
        }
      }
    }
protected virtual void Dispose ( bool disposing ) { if ( disposing ) { try { if ( _signalQueue != null ) { _signalQueue . Close ( ) ; } if ( _writer != null ) { _writer . Flush ( ) ; _writer . Close ( ) ; _writer = null ; } } catch ( ObjectDisposedException ex ) { System . Diagnostics . Trace . WriteLine ( ex . Message ) ; } catch ( EncoderFallbackException ex ) { System . Diagnostics . Trace . WriteLine ( ex . Message ) ; } catch ( IOException ex ) { System . Diagnostics . Trace . WriteLine ( ex . Message ) ; } } }
Releases unmanaged and - optionally - managed resources
Releases unmanaged and - optionally - managed resources
disposing
bool
None