public static XXXDeliveryResult XXXDeliveryResult(DeliveryResult <byte[], byte[]> message) { var headers = new MessageHeaders(); foreach (var header in message.Message.Headers) { headers.Add(header.Key, header.GetValueBytes()); } var intermediateMessage = new XXXDeliveryResult(headers, message.Message.Value); intermediateMessage.Topic = message.Topic; intermediateMessage.Partition = message.Partition; intermediateMessage.Offset = message.Offset; return(intermediateMessage); }
public XXXProduceException(XXXError error, XXXDeliveryResult deliveryResult, Exception innerException) { this.DeliveryResult = deliveryResult; this.Error = error; }