示例#1
0
 /// <summary>Initializes a new instance of the <see cref="HeadersExchangeKeysBindingCreator"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 /// <param name="headerKeys">The header keys.</param>
 /// <param name="matchAll">The match all.</param>
 public HeadersExchangeKeysBindingCreator(DestinationConfigurer destination, HeadersExchange exchange, string[] headerKeys, bool matchAll)
 {
     AssertUtils.ArgumentNotNull(headerKeys, "headerKeys", "header key list must not be empty");
     this.headerMap = CreateMapForKeys(headerKeys);
     this.headerMap.Add("x-match", matchAll ? "all" : "any");
     this.destination = destination;
     this.exchange    = exchange;
 }
示例#2
0
 /// <summary>Initializes a new instance of the <see cref="HeadersExchangeMapBindingCreator"/> class.</summary>
 /// <param name="destination">The Destination.</param>
 /// <param name="exchange">The Exchange.</param>
 /// <param name="headerMap">The header map.</param>
 /// <param name="matchAll">The match all.</param>
 internal HeadersExchangeMapBindingCreator(DestinationConfigurer destination, HeadersExchange exchange, IDictionary headerMap, bool matchAll)
 {
     // Assert.notEmpty(headerMap, "header map must not be empty");
     this.headerMap = new Dictionary <string, object> {
         { "x-match", matchAll ? "all" : "any" }
     };
     this.destination = destination;
     this.exchange    = exchange;
 }
示例#3
0
 public HeadersExchangeMapConfigurer(DestinationConfigurer destination, HeadersExchange exchange)
 {
     Destination = destination;
     Exchange    = exchange;
 }
示例#4
0
 public DirectExchangeRoutingKeyConfigurer(DestinationConfigurer destination, DirectExchange exchange)
     : base(destination, exchange.ExchangeName)
 {
 }
示例#5
0
 public GenericExchangeRoutingKeyConfigurer(DestinationConfigurer destination, IExchange exchange)
     : base(destination, exchange.ExchangeName)
 {
 }
示例#6
0
 protected AbstractRoutingKeyConfigurer(DestinationConfigurer destination, string exchange)
 {
     Destination  = destination;
     ExchangeName = exchange;
 }
示例#7
0
 public TopicExchangeRoutingKeyConfigurer(DestinationConfigurer destination, TopicExchange exchange)
     : base(destination, exchange.Name)
 {
 }
示例#8
0
 /// <summary>Initializes a new instance of the <see cref="AbstractRoutingKeyConfigurer{T}"/> class.
 /// Initializes a new instance of the <see cref="AbstractRoutingKeyConfigurer{E}"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 protected AbstractRoutingKeyConfigurer(DestinationConfigurer destination, string exchange)
 {
     this.destination = destination;
     this.exchange    = exchange;
 }
示例#9
0
 /// <summary>Initializes a new instance of the <see cref="HeadersExchangeSingleValueBindingCreator"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 /// <param name="key">The key.</param>
 internal HeadersExchangeSingleValueBindingCreator(DestinationConfigurer destination, HeadersExchange exchange, string key)
 {
     AssertUtils.ArgumentHasText(key, "key", "key must not be null");
     this.key = key;
 }
示例#10
0
 /// <summary>Initializes a new instance of the <see cref="HeadersExchangeMapConfigurer"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 internal HeadersExchangeMapConfigurer(DestinationConfigurer destination, HeadersExchange exchange)
 {
     this.destination = destination;
     this.exchange    = exchange;
 }
示例#11
0
 /// <summary>Initializes a new instance of the <see cref="GenericExchangeRoutingKeyConfigurer"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 internal GenericExchangeRoutingKeyConfigurer(DestinationConfigurer destination, IExchange exchange) : base(destination, exchange.Name)
 {
 }
示例#12
0
 /// <summary>Initializes a new instance of the <see cref="DirectExchangeRoutingKeyConfigurer"/> class.</summary>
 /// <param name="destination">The destination.</param>
 /// <param name="exchange">The exchange.</param>
 internal DirectExchangeRoutingKeyConfigurer(DestinationConfigurer destination, DirectExchange exchange) : base(destination, exchange.Name)
 {
 }