public KafkaEventBusAdapterFactory(string name, KafkaOptions kafkaOptions, KafkaReceiverOptions receiverOptions, KafkaStreamCachePressureOptions cacheOptions, StreamStatisticOptions statisticOptions, IServiceProvider serviceProvider, SerializationManager serializationManager, ITelemetryProducer telemetryProducer, ILoggerFactory loggerFactory) { this.Name = name; this.statisticOptions = statisticOptions ?? throw new ArgumentNullException(nameof(statisticOptions)); this.kafkaOptions = kafkaOptions ?? throw new ArgumentNullException(nameof(kafkaOptions)); this.cacheOptions = cacheOptions ?? throw new ArgumentNullException(nameof(cacheOptions)); this.receiverOptions = receiverOptions ?? throw new ArgumentNullException(nameof(receiverOptions)); this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); this.SerializationManager = serializationManager ?? throw new ArgumentNullException(nameof(serializationManager)); this.telemetryProducer = telemetryProducer ?? throw new ArgumentNullException(nameof(telemetryProducer)); this.loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); this.Direction = kafkaOptions.Direction; }
public static Dictionary <string, object> ToKafkaConsumerConfig(this KafkaReceiverOptions receiverOptions, KafkaOptions kafkaOptions) { return(new Dictionary <string, object> { { "group.id", receiverOptions.ConsumerGroup }, { "enable.auto.commit", true }, { "auto.commit.interval.ms", 5000 }, { "statistics.interval.ms", 60000 }, { "bootstrap.servers", kafkaOptions.BrokerList }, { "default.topic.config", new Dictionary <string, object>() { { "auto.offset.reset", "smallest" } } } }); }
public KafkaRecieverOptionsValidator(KafkaReceiverOptions options, string name) { this.options = options; this.name = name; }
public KafkaEventBusAdapterReceiver(KafkaOptions kafkaOptions, KafkaReceiverOptions receiverOptions, SerializationManager serializationManager) { this.kafkaOptions = kafkaOptions; this.receiverOptions = receiverOptions; this.serializationManager = serializationManager; }