コード例 #1
0
 protected void Construct()
 {
     DataWrittenEvent += new DataWrittenDelegate(FileWriterHelper_DataWrittenEvent);
     _actualFilePath   = string.Empty;
     _lastFlush        = DateTime.MinValue;
     _writer           = null;
     _stream           = null;
     _logFileNumber    = 0;
 }
コード例 #2
0
        protected void Construct()
        {
            _syncRoot = new object();

            lock (_syncRoot)
            {
                DataWrittenEvent += new DataWrittenDelegate(FileWriterHelper_DataWrittenEvent);
                _actualFilePath = string.Empty;
                _lastFlush = DateTime.MinValue;
                _writer = null;
                _stream = null;
                _logFileNumber = 0;
            }
        }