예제 #1
0
        public void Start(QueueConfiguration subscriberConfiguration, IMessageHandler handler)
        {
            _queueServiceParams = subscriberConfiguration;
            _handler            = handler;

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

            Start();
        }