/// <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; }
/// <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; }
public HeadersExchangeMapConfigurer(DestinationConfigurer destination, HeadersExchange exchange) { Destination = destination; Exchange = exchange; }
public DirectExchangeRoutingKeyConfigurer(DestinationConfigurer destination, DirectExchange exchange) : base(destination, exchange.ExchangeName) { }
public GenericExchangeRoutingKeyConfigurer(DestinationConfigurer destination, IExchange exchange) : base(destination, exchange.ExchangeName) { }
protected AbstractRoutingKeyConfigurer(DestinationConfigurer destination, string exchange) { Destination = destination; ExchangeName = exchange; }
public TopicExchangeRoutingKeyConfigurer(DestinationConfigurer destination, TopicExchange exchange) : base(destination, exchange.Name) { }
/// <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; }
/// <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; }
/// <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; }
/// <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) { }
/// <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) { }