/// <summary> /// Most specific constructor. Could be used with DI /// </summary> public TeamCityServiceMessages([NotNull] IServiceMessageFormatter formatter, [NotNull] IFlowIdGenerator flowIdGenerator, [NotNull] IEnumerable <IServiceMessageUpdater> updaters) { Formatter = formatter; FlowIdGenerator = flowIdGenerator; Updaters = updaters; }
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 ServiceMessagesWriter([NotNull] IServiceMessageFormatter formatter, [NotNull] Action <string> printer) { if (formatter == null) { throw new ArgumentNullException(nameof(formatter)); } if (printer == null) { throw new ArgumentNullException(nameof(printer)); } _formatter = formatter; _printer = printer; }
/// <summary> /// Most specific constructor. Could be used with DI /// </summary> public TeamCityServiceMessages( [NotNull] IServiceMessageFormatter formatter, [NotNull] IFlowIdGenerator flowIdGenerator, [NotNull] IEnumerable <IServiceMessageUpdater> updaters) { if (formatter == null) { throw new ArgumentNullException(nameof(formatter)); } if (flowIdGenerator == null) { throw new ArgumentNullException(nameof(flowIdGenerator)); } if (updaters == null) { throw new ArgumentNullException(nameof(updaters)); } Formatter = formatter; FlowIdGenerator = flowIdGenerator; Updaters = updaters; }
public ServiceMessagesWriter([NotNull] IServiceMessageFormatter formatter, [NotNull] Action <string> printer) { myFormatter = formatter; myPrinter = printer; }