Пример #1
0
        public void QueueBindMessage <T>(string queueName, string exchange, string routingKey = "", bool hierarchy = false, IEnumerable <BusHeader> filter = null)
        {
            var helper = new SubscriptionHelper((type, filterInfo, handler) =>
            {
                _model.QueueBind(queueName, exchange, routingKey, filterInfo);

                return(true);
            });

            helper.Subscribe(typeof(T), new NullCallHandler(), hierarchy, filter);
        }
Пример #2
0
 public bool Subscribe <TData>(bool hierarchy = false, IEnumerable <BusHeader> filter = null)
 {
     return(_helper.Subscribe(typeof(TData), null, hierarchy, filter));
 }