Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public XXXProduceException(XXXError error, XXXDeliveryResult deliveryResult, Exception innerException)
 {
     this.DeliveryResult = deliveryResult;
     this.Error          = error;
 }