Ejemplo n.º 1
0
        public void SetUpQueue()
        {
            options  = new TestServiceBusQueueOptions();
            provider = new ServiceBusQueueJobQueueProvider(options);

            queue   = provider.GetJobQueue();
            monitor = provider.GetJobQueueMonitoringApi();
        }
        private void SetUpQueue(TimeSpan lockDuration)
        {
            options = new TestServiceBusQueueOptions
            {
                Configure = d => d.LockDuration = lockDuration
            };

            provider = new ServiceBusQueueJobQueueProvider(options);

            queue   = provider.GetJobQueue();
            monitor = provider.GetJobQueueMonitoringApi();
        }