Пример #1
0
        public void ExchangeDeclare(string exchange, string type, bool durable,
                                    bool autoDelete, IDictionary <string, object> arguments)
        {
            RecordedExchange rx = new RecordedExchange(this, exchange).
                                  WithType(type).
                                  WithDurable(durable).
                                  WithAutoDelete(autoDelete).
                                  WithArguments(arguments);

            m_delegate.ExchangeDeclare(exchange, type, durable,
                                       autoDelete, arguments);
            m_connection.RecordExchange(exchange, rx);
        }
 public void RecordExchange(string name, RecordedExchange x)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedExchanges[name] = x;
     }
 }
 public void ExchangeDeclareNoWait(string exchange,
     string type,
     bool durable,
     bool autoDelete,
     IDictionary<string, object> arguments)
 {
     RecordedExchange rx = new RecordedExchange(this, exchange).
         WithType(type).
         WithDurable(durable).
         WithAutoDelete(autoDelete).
         WithArguments(arguments);
     m_delegate.ExchangeDeclareNoWait(exchange, type, durable,
         autoDelete, arguments);
     m_connection.RecordExchange(exchange, rx);
 }