Ejemplo n.º 1
0
 public void AddServiceMessageUpdater(IServiceMessageUpdater updater)
 {
     if (updater == null)
     {
         throw new ArgumentNullException(nameof(updater));
     }
     Updaters = Updaters.Union(new[] { updater }).ToArray();
 }
Ejemplo n.º 2
0
 public TeamCityServiceMessages()
 {
     Formatter       = new ServiceMessageFormatter();
     Updaters        = new IServiceMessageUpdater[] { new TimestampUpdater(() => DateTime.Now) };
     FlowIdGenerator = new DefaultFlowIdGenerator();
 }
 public void AddServiceMessageUpdater(IServiceMessageUpdater updater)
 {
     Updaters = Updaters.Union(new [] { updater }).ToArray();
 }