public void HeaderBinding()
        {
            var headersExchange = new HeadersExchange("h");
            var headerKey       = "headerKey";
            var binding         = BindingBuilder.Bind(queue).To(headersExchange).Where(headerKey).Exists();

            Assert.NotNull(binding);
            Assert.Equal(headersExchange.ExchangeName, binding.Exchange);
            Assert.Equal(Binding.DestinationType.QUEUE, binding.Type);
            Assert.Equal(queue.QueueName, binding.Destination);
            Assert.Equal(string.Empty, binding.RoutingKey);
        }
示例#2
0
 public HeadersExchangeMapConfigurer(DestinationConfigurer destination, HeadersExchange exchange)
 {
     Destination = destination;
     Exchange    = exchange;
 }
示例#3
0
 public HeadersExchangeMapConfigurer To(HeadersExchange exchange)
 {
     return(new HeadersExchangeMapConfigurer(this, exchange));
 }