示例#1
0
 public void WriteLine(string message)
 {
     _sink.Write(new ConsoleContext()
     {
         ForegroundColor = ForegroundColor,
         BackgroundColor = BackgroundColor,
         Message         = message
     });
 }
示例#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
            });
        }