public void Start(QueueConfiguration subscriberConfiguration, IMessageHandler handler) { _queueServiceParams = subscriberConfiguration; _handler = handler; Start(); }
public void Start(string queue, string tag, IMessageHandler handler, ushort prefetch = 1) { _queueServiceParams = new QueueConfiguration { PrefetchCount = prefetch, QueueName = queue, ConsumerTag = tag, }; _handler = handler; Start(); }