示例#1
0
        private static Queue BindDurableQueue(IBroker broker, String queueName, Exchange exchange)
        {
            var queue = broker.DeclareDurableQueue(queueName);

            broker.DeclareExchangeBinding(exchange, queue, RoutingKey);
            return(queue);
        }
示例#2
0
 private static Queue BindDurableQueue(IBroker broker, String queueName, Exchange exchange)
 {
     var queue = broker.DeclareDurableQueue(queueName);
     broker.DeclareExchangeBinding(exchange, queue, RoutingKey);
     return queue;
 }