예제 #1
0
 public static void Initialize(string filename, bool append)
 {
     if (_current != null)
     {
         _current.Dispose();
     }
     _current = new OutputLogQueue(filename, append);
 }
예제 #2
0
        public void Dispose()
        {
            //Dispose the worker
            //_worker.Dispose();

            if (_thread != null)
            {
                _thread.Abort();
                _thread.Join();
                _thread = null;
            }

            _current = null;
        }