Example #1
0
        private void SaveLogfile(string path)
        {
            _saveDiskWriteBuffer.WaitOne();
            if (string.IsNullOrEmpty(_textBuffer))
            {
                return;
            }

            using (var file = new TxtFile(path))
            {
                file.Create();

                _saveDiskWriteBuffer.WaitOne();
                file.Write(_textBuffer);
                file.Close();
            }
        }