Пример #1
0
 public void Flush()
 {
     //stdOut.Flush();
     VerboseOut.Flush();
     ErrorOut.Flush();
     WarningOut.Flush();
 }
 public IResultWriter EndOutput(string endStr = "")
 {
     stdOut.Flush();
     VerboseOut.Flush();
     WarningOut.Flush();
     return(this);
 }
Пример #3
0
        protected virtual void Dispose(bool disposing = true)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                stdOut.Close();
                VerboseOut.Close();
                ErrorOut.Close();
                WarningOut.Close();
                stdOut.Dispose();
                VerboseOut.Dispose();
                ErrorOut.Dispose();
                WarningOut.Dispose();
            }

            _disposed = true;
        }
Пример #4
0
        protected virtual void Dispose(bool disposing = true)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                stdOut.Close();
                VerboseOut.Close();
                ErrorOut.Close();
                WarningOut.Close();
                stdOut.Dispose();
                VerboseOut.Dispose();
                ErrorOut.Dispose();
                WarningOut.Dispose();
            }

            // release any unmanaged objects
            // set the object references to null

            _disposed = true;
        }
Пример #5
0
 public IResultWriter WriteWarning(string line)
 {
     WarningOut.WriteLine(line);
     return(this);
 }