Esempio n. 1
0
 public MessageProcessor(
     [NotNull] ILog <MessageProcessor> log,
     [NotNull] IServiceMessageFormatter messageFormatter,
     [NotNull] IServiceMessageParser serviceMessageParser,
     [NotNull] Func <IBuildLogFlow> flowFactory)
 {
     _log = log ?? throw new ArgumentNullException(nameof(log));
     _messageFormatter     = messageFormatter ?? throw new ArgumentNullException(nameof(messageFormatter));
     _serviceMessageParser = serviceMessageParser ?? throw new ArgumentNullException(nameof(serviceMessageParser));
     _flowFactory          = flowFactory ?? throw new ArgumentNullException(nameof(flowFactory));
 }
 public TeamCityHierarchicalMessageWriter(
     [NotNull] ILoggerContext context,
     [NotNull] IColorTheme colorTheme,
     [NotNull] ITeamCityWriter writer,
     [NotNull] IServiceMessageParser serviceMessageParser,
     [NotNull] IColorStorage colorStorage)
 {
     _context              = context ?? throw new ArgumentNullException(nameof(context));
     _colorStorage         = colorStorage ?? throw new ArgumentNullException(nameof(colorStorage));
     _colorTheme           = colorTheme ?? throw new ArgumentNullException(nameof(colorTheme));
     _writer               = writer ?? throw new ArgumentNullException(nameof(writer));
     _serviceMessageParser = serviceMessageParser ?? throw new ArgumentNullException(nameof(serviceMessageParser));
 }