public ServiceBusQueueMonitoringApi(ServiceBusManager manager, string[] queues)
        {
            if (manager == null) throw new ArgumentNullException("manager");
            if (queues == null) throw new ArgumentNullException("queues");

            _manager = manager;
            _queues = queues;
        }
Example #2
0
        public ServiceBusQueueJobQueue(ServiceBusManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            _manager = manager;
        }
        public ServiceBusQueueJobQueueProvider(ServiceBusQueueOptions options)
        {
            if (options == null) throw new ArgumentNullException("options");

            options.Validate();

            var manager = new ServiceBusManager(options);

            _jobQueue = new ServiceBusQueueJobQueue(manager);
            _monitoringApi = new ServiceBusQueueMonitoringApi(manager, options.Queues);
        }
        public ServiceBusQueueJobQueueProvider(ServiceBusQueueOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            options.Validate();

            var manager = new ServiceBusManager(options);

            _jobQueue      = new ServiceBusQueueJobQueue(manager);
            _monitoringApi = new ServiceBusQueueMonitoringApi(manager, options.Queues);
        }
        public ServiceBusQueueMonitoringApi(ServiceBusManager manager, string[] queues)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }
            if (queues == null)
            {
                throw new ArgumentNullException("queues");
            }

            _manager = manager;
            _queues  = queues;
        }
Example #6
0
        public ServiceBusQueueJobQueue(ServiceBusManager manager, ServiceBusQueueOptions options)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            _manager = manager;
            _options = options;
        }
        public ServiceBusQueueJobQueueProvider(ServiceBusQueueOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            options.Validate();

            Logger.Info("Using the following options for Azure service bus:");
            Logger.InfoFormat("    Check and create queues: {0}", options.CheckAndCreateQueues);
            Logger.InfoFormat("    Queue prefix: {0}", options.QueuePrefix);
            Logger.InfoFormat("    Queues: [{0}]", string.Join(", ", options.Queues));

            var manager = new ServiceBusManager(options);

            _jobQueue      = new ServiceBusQueueJobQueue(manager, options);
            _monitoringApi = new ServiceBusQueueMonitoringApi(manager, options.Queues);
        }
        public ServiceBusQueueJobQueue(ServiceBusManager manager)
        {
            if (manager == null) throw new ArgumentNullException("manager");

            _manager = manager;
        }