Пример #1
0
        public void LoadIntoDatabase(IList <string> strings)
        {
            Spooler.AddItem(strings);
            ActiveCount++;

            Console.WriteLine("Spooled");
        }
        /// <summary>
        /// Write a line of text to the file
        /// </summary>
        /// <param name="contentLine">the line of text</param>
        /// <param name="formatArgs">args for string.format</param>
        public void WriteLine(string contentLine, params object[] formatArgs)
        {
            string       cmdContent = formatArgs != null & formatArgs.Length > 0 ? string.Format(contentLine, formatArgs) : contentLine;
            WriteCommand cmd        = new WriteCommand()
            {
                WriteType = WriteTypes.Line,
                Content   = cmdContent
            };

            Spooler.AddItem(cmd);
        }