Apache.NMS.ActiveMQ.Connection.SyncRequest C# (CSharp) Метод

SyncRequest() публичный Метод

Performs a synchronous request-response with the broker
public SyncRequest ( Command command ) : Response
command Command
Результат Apache.NMS.ActiveMQ.Commands.Response
        public Response SyncRequest(Command command)
        {
            try
            {
                return SyncRequest(command, this.RequestTimeout);
            }
            catch(Exception ex)
            {
                throw NMSExceptionSupport.Create(ex);
            }
        }

Same methods

Connection::SyncRequest ( Command command, System.TimeSpan requestTimeout ) : Response

Usage Example

Пример #1
0
 public void DoSend(Command message, TimeSpan requestTimeout)
 {
     if (AsyncSend)
     {
         Connection.OneWay(message);
     }
     else
     {
         Connection.SyncRequest(message, requestTimeout);
     }
 }