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); }
public bool Subscribe <TData>(bool hierarchy = false, IEnumerable <BusHeader> filter = null) { return(_helper.Subscribe(typeof(TData), null, hierarchy, filter)); }