Esempio n. 1
0
 public void WriteLine(string message)
 {
     _sink.Write(new ConsoleContext()
     {
         ForegroundColor = ForegroundColor,
         BackgroundColor = BackgroundColor,
         Message         = message
     });
 }
Esempio n. 2
0
        public void WriteLine(string format, params object[] args)
        {
            var message = string.Format(format, args);

            _sink.Write(new ConsoleContext()
            {
                ForegroundColor = ForegroundColor,
                BackgroundColor = BackgroundColor,
                Message         = message
            });
        }