Ejemplo n.º 1
0
        private Text ToText(IServiceMessage message)
        {
            var str = _messageFormatter.FormatMessage(message);

            str = str.Replace("##teamcity", "@@teamcity");
            return(new Text(str));
        }
 public void AddServiceMessage(IServiceMessage serviceMessage)
 {
     if (serviceMessage == null)
     {
         throw new ArgumentNullException(nameof(serviceMessage));
     }
     _printer(_formatter.FormatMessage(serviceMessage));
 }
Ejemplo n.º 3
0
 public void AddServiceMessage(IServiceMessage serviceMessage)
 {
     myPrinter(myFormatter.FormatMessage(serviceMessage));
 }