Spring.Messaging.Nms.Listener.Adapter.MessageListenerAdapter.SendResponse C# (CSharp) Метод

SendResponse() защищенный Метод

Sends the given response message to the given destination.
protected SendResponse ( ISession session, IDestination destination, IMessage response ) : void
session ISession The session to operate on.
destination IDestination The destination to send to.
response IMessage The outgoing message about to be sent.
Результат void
        protected virtual void SendResponse(ISession session, IDestination destination, IMessage response)
        {
            IMessageProducer producer = session.CreateProducer(destination);
            try
            {
                PostProcessProducer(producer, response);
                producer.Send(response);
            }
            finally
            {
                NmsUtils.CloseMessageProducer(producer);
            }
        }