示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _fileWriter?.Dispose();
                _fileWriter = null;
            }

            base.Dispose(disposing);
        }
示例#2
0
        protected override void CloseTarget()
        {
            _fileWriter?.Dispose();

            _fileWriter = null;
        }
示例#3
0
        protected override void InitializeTarget()
        {
            base.InitializeTarget();

            _fileWriter = new LazyFileWriter(Layout, 100000, "%TEMP%\\XFileTarget\\DraftFile.txt");
        }