public TimeSeriesMessageQueueDispatcher( IKafkaDispatcher kafkaDispatcher, IJsonSerializer jsonSerializer, string topic) { _kafkaDispatcher = kafkaDispatcher ?? throw new ArgumentNullException(nameof(kafkaDispatcher)); _jsonSerializer = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer)); _topic = !string.IsNullOrEmpty(topic) ? topic : throw new ArgumentNullException(nameof(topic)); }
public CommonMessageQueueDispatcher( IKafkaDispatcher kafkaDispatcher, IMessageEnvelopeFactory messageEnvelopeFactory, string topic) { _kafkaDispatcher = kafkaDispatcher ?? throw new ArgumentNullException(nameof(kafkaDispatcher)); _messageEnvelopeFactory = messageEnvelopeFactory ?? throw new ArgumentNullException(nameof(messageEnvelopeFactory)); _topic = !string.IsNullOrEmpty(topic) ? topic : throw new ArgumentNullException(nameof(topic)); }