Пример #1
0
        private KafkaProducerArgs OnKakfaProducerSucces(T message, string key = "")
        {
            var e = new KafkaProducerArgs(message, key, null);

            KakfaProducerSucces?.Invoke(e);
            return(e);
        }
Пример #2
0
        private KafkaProducerArgs OnKakfaProducerException(T messages, string key = "", ProduceException <string, string> kafkaProducerExecption = null)
        {
            var e = new KafkaProducerArgs(messages, key, kafkaProducerExecption);

            KakfaProducerException?.Invoke(e);
            return(e);
        }