Esempio n. 1
0
        public void SaveOutputToFile(string directory, string name, int linesPerFile, int linesPerFlush)
        {
            if (writerFile != null)
            {
                throw new InvalidOperationException("SaveOutputToFile procedure is already active");
            }

            writerFile = new ConsoleWriterFile(Writer, directory, name, linesPerFile, linesPerFlush);
        }
Esempio n. 2
0
        public void CancelSaveOutputToFile()
        {
            if (writerFile == null)
            {
                throw new InvalidOperationException("SaveOutputToFile procedure is not active");
            }

            writerFile.Dispose();
            writerFile = null;
        }