Contour.Transport.RabbitMQ.Internal.RabbitChannel.Reply C# (CSharp) Method

Reply() public method

The reply.
public Reply ( IMessage message, RabbitRoute replyTo, string correlationId ) : void
message IMessage /// The message. ///
replyTo RabbitRoute /// The reply to. ///
correlationId string /// The correlation id. ///
return void
        public void Reply(IMessage message, RabbitRoute replyTo, string correlationId)
        {
            Action<IBasicProperties> propsVisitor = props => { props.CorrelationId = correlationId; };

            this.Publish(new RabbitRoute(replyTo.Exchange, replyTo.RoutingKey), message, propsVisitor);
        }