Ejemplo n.º 1
0
                public HeadersExchangeSingleValueBindingCreator(HeadersExchangeMapConfigurer configurer, string key)
                {
                    if (key == null)
                    {
                        throw new ArgumentNullException(nameof(key));
                    }

                    _key        = key;
                    _configurer = configurer;
                }
Ejemplo n.º 2
0
                public HeadersExchangeMapBindingCreator(HeadersExchangeMapConfigurer configurer, Dictionary <string, object> headerMap, bool matchAll)
                {
                    if (headerMap == null || headerMap.Count == 0)
                    {
                        throw new ArgumentException(nameof(headerMap));
                    }

                    _headerMap            = new Dictionary <string, object>(headerMap);
                    _headerMap["x-match"] = matchAll ? "all" : "any";
                    _configurer           = configurer;
                }
Ejemplo n.º 3
0
                public HeadersExchangeKeysBindingCreator(HeadersExchangeMapConfigurer configurer, string[] headerKeys, bool matchAll)
                {
                    if (headerKeys == null || headerKeys.Length == 0)
                    {
                        throw new ArgumentException(nameof(headerKeys));
                    }

                    _headerMap            = CreateMapForKeys(headerKeys);
                    _headerMap["x-match"] = matchAll ? "all" : "any";
                    _configurer           = configurer;
                }