Esempio n. 1
0
 private void CloseFileWriter()
 {
     if (_currentFileWriter != null)
     {
         _currentFileWriter.Dispose();
         _currentFileWriter = null;
     }
     _nextCheckpoint = null;
 }
Esempio n. 2
0
        public void Dispose()
        {
            lock (this)
            {
                if (!Disposed)
                {
                    Disposed = true;
                    GC.SuppressFinalize(this);

                    if (MessageWriter != null)
                    {
                        if (MessageWriter is IThreadExceptionEvent)
                        {
                            (MessageWriter as IThreadExceptionEvent).OnThreadException -= OnWriterThreadException;
                        }

                        MessageWriter.Dispose();
                        MessageWriter = null;
                    }
                }
            }
        }
Esempio n. 3
0
 public void Dispose()
 {
     _writer.Dispose();
 }