public KafkaConsumerResultModel(bool isSuccessful, KafkaErrorMessage errorMessage = null) { IsSuccessful = isSuccessful; ErrorMessage = errorMessage; }
public static KafkaConsumerResultModel GetFailedResultModel <T>(T message, Exception ex) { var errorMessage = KafkaErrorMessage.CreateErrorMessage(message, ex); return(new KafkaConsumerResultModel(false, errorMessage)); }