public static IConsumerWrapper New(KafkaConsumerConfig config, IDeserializer <V> valueDeserializer) { Consumer <K, V> consumer = new Consumer <K, V>(config.Settings, null, valueDeserializer); ConsumerWrapper <K, V> cw = new ConsumerWrapper <K, V>(consumer, config); return(cw); }
public IConsumerWrapper Create() { return(ConsumerWrapper <Null, string> .New(config, new StringDeserializer(System.Text.Encoding.UTF8)).Subscribe(config.Topics).WithPoolingTimeout(1000)); }