public async Task <INMSProducer> SendAsync(IDestination destination, IMessage message) { if (message == null) { throw new MessageFormatException("Message must not be null"); } NmsMessageTransformation.CopyMap(messageProperties, message.Properties); if (correlationId != null) { message.NMSCorrelationID = correlationId; } if (type != null) { message.NMSType = type; } if (replyTo != null) { message.NMSReplyTo = replyTo; } await producer.SendAsync(destination, message).Await(); return(this); }