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; }
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); }