Exemple #1
0
        public void ExchangeBind(string destination,
                                 string source,
                                 string routingKey,
                                 IDictionary <string, object> arguments)
        {
            RecordedBinding eb = new RecordedExchangeBinding(this).
                                 WithSource(source).
                                 WithDestination(destination).
                                 WithRoutingKey(routingKey).
                                 WithArguments(arguments);

            m_connection.RecordBinding(eb);
            m_delegate.ExchangeBind(destination, source, routingKey, arguments);
        }
Exemple #2
0
        public async Task ExchangeUnbind(string destination,
                                         string source,
                                         string routingKey,
                                         IDictionary <string, object> arguments)
        {
            RecordedBinding eb = new RecordedExchangeBinding(this).
                                 WithSource(source).
                                 WithDestination(destination).
                                 WithRoutingKey(routingKey).
                                 WithArguments(arguments);

            m_connection.DeleteRecordedBinding(eb);
            await m_delegate.ExchangeUnbind(destination, source, routingKey, arguments);

            m_connection.MaybeDeleteRecordedAutoDeleteExchange(source);
        }
 public void ExchangeUnbind(string destination,
     string source,
     string routingKey,
     IDictionary<string, object> arguments)
 {
     RecordedBinding eb = new RecordedExchangeBinding(this).
         WithSource(source).
         WithDestination(destination).
         WithRoutingKey(routingKey).
         WithArguments(arguments);
     m_connection.DeleteRecordedBinding(eb);
     m_delegate.ExchangeUnbind(destination, source, routingKey, arguments);
     m_connection.MaybeDeleteRecordedAutoDeleteExchange(source);
 }