public static SqlServerStorage UseServiceBusQueues(
            this SqlServerStorage storage,
            ServiceBusQueueOptions options)
        {
            if (storage == null) throw new ArgumentNullException("storage");
            if (options == null) throw new ArgumentNullException("options");

            var provider = new ServiceBusQueueJobQueueProvider(options);

            storage.QueueProviders.Add(provider, options.Queues);

            return storage;
        }
Exemple #2
0
        public static SqlServerStorage UseServiceBusQueues(
            this SqlServerStorage storage,
            ServiceBusQueueOptions options)
        {
            if (storage == null)
            {
                throw new ArgumentNullException("storage");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            var provider = new ServiceBusQueueJobQueueProvider(options);

            storage.QueueProviders.Add(provider, options.Queues);

            return(storage);
        }