public void AddServiceMessageUpdater(IServiceMessageUpdater updater) { if (updater == null) { throw new ArgumentNullException(nameof(updater)); } Updaters = Updaters.Union(new[] { updater }).ToArray(); }
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(); }