예제 #1
0
        public RabbitMqJobQueueProvider(IEnumerable<string> queues, ConnectionFactory configureAction)
        {
            if (queues == null) throw new ArgumentNullException("queues");
            if (configureAction == null) throw new ArgumentNullException("configureAction");

            _jobQueue = new RabbitMqJobQueue(queues, configureAction);
            _monitoringApi = new RabbitMqMonitoringApi(configureAction, queues.ToArray());
        }
        public RabbitMqJobQueueProvider(IEnumerable <string> queues, ConnectionFactory configureAction)
        {
            if (queues == null)
            {
                throw new ArgumentNullException("queues");
            }
            if (configureAction == null)
            {
                throw new ArgumentNullException("configureAction");
            }

            _jobQueue      = new RabbitMqJobQueue(queues, configureAction);
            _monitoringApi = new RabbitMqMonitoringApi(configureAction, queues.ToArray());
        }
예제 #3
0
        public RabbitMqJobQueueProvider(string[] queues, ConnectionFactory configureAction,
                                        [CanBeNull] Action <IModel> configureConsumer = null)
        {
            if (queues == null)
            {
                throw new ArgumentNullException("queues");
            }
            if (configureAction == null)
            {
                throw new ArgumentNullException("configureAction");
            }

            _jobQueue      = new RabbitMqJobQueue(queues, configureAction, configureConsumer);
            _monitoringApi = new RabbitMqMonitoringApi(configureAction, queues);
        }