コード例 #1
0
 public KafkaConsumerResultModel(bool isSuccessful, KafkaErrorMessage errorMessage = null)
 {
     IsSuccessful = isSuccessful;
     ErrorMessage = errorMessage;
 }
コード例 #2
0
        public static KafkaConsumerResultModel GetFailedResultModel <T>(T message, Exception ex)
        {
            var errorMessage = KafkaErrorMessage.CreateErrorMessage(message, ex);

            return(new KafkaConsumerResultModel(false, errorMessage));
        }