michaelandrepearce commented on a change in pull request #56:
URL: https://github.com/apache/activemq-nms-amqp/pull/56#discussion_r411808429



##########
File path: src/NMS.AMQP/NmsSession.cs
##########
@@ -396,8 +450,20 @@ public void AcknowledgeIndividual(AckType ackType, 
InboundMessageDispatch envelo
             Connection.Acknowledge(envelope, 
ackType).ConfigureAwait(false).GetAwaiter().GetResult();
         }
 
-        public void Send(NmsMessageProducer producer, IDestination 
destination, IMessage original, MsgDeliveryMode deliveryMode,
-            MsgPriority priority, TimeSpan timeToLive, bool disableMessageId, 
bool disableMessageTimestamp)
+        public void Send(NmsMessageProducer producer, IDestination 
destination, IMessage original,
+            MsgDeliveryMode deliveryMode,
+            MsgPriority priority, TimeSpan timeToLive, bool disableMessageId, 
bool disableMessageTimestamp, TimeSpan deliveryDelay, CompletionListener 
completionListener)
+        {
+            Task task = SendAsync(producer, destination, original, 
deliveryMode, priority, timeToLive, disableMessageId,
+                disableMessageTimestamp, deliveryDelay, completionListener);
+            if (completionListener == null)
+            {
+                task.ConfigureAwait(false).GetAwaiter().GetResult();
+            }
+        }
+
+        public Task SendAsync(NmsMessageProducer producer, IDestination 
destination, IMessage original, MsgDeliveryMode deliveryMode,

Review comment:
       That method isnt actually in api, its public though so the api methods 
use it, and can be used from the NMSProducer wrapper




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to