示例#1
0
        private void CreateQueues(QueueCreationType queueCreationType, IWorkQueueConfiguration workQueueConfiguration)
        {
            if (ShouldCreate(queueCreationType, workQueueConfiguration.WorkQueue))
            {
                CreatePhysicalQueue(workQueueConfiguration.WorkQueue);
            }

            var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration;

            if (errorQueueConfiguration != null)
            {
                if (ShouldCreate(queueCreationType, errorQueueConfiguration.ErrorQueue))
                {
                    CreatePhysicalQueue(errorQueueConfiguration.ErrorQueue);
                }
            }

            var journalQueueConfiguration = workQueueConfiguration as IJournalQueueConfiguration;

            if (journalQueueConfiguration == null || journalQueueConfiguration.JournalQueue == null)
            {
                return;
            }

            if (ShouldCreate(queueCreationType, journalQueueConfiguration.JournalQueue))
            {
                CreatePhysicalQueue(journalQueueConfiguration.JournalQueue);
            }
        }
示例#2
0
        private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration)
        {
            workQueueConfiguration.WorkQueue.AttemptCreate();

            if (workQueueConfiguration is IErrorQueueConfiguration errorQueueConfiguration)
            {
                errorQueueConfiguration.ErrorQueue.AttemptCreate();
            }
        }
示例#3
0
        private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration)
        {
            workQueueConfiguration.WorkQueue.AttemptCreate();

            var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration;

            if (errorQueueConfiguration != null)
            {
                errorQueueConfiguration.ErrorQueue.AttemptCreate();
            }
        }
示例#4
0
        private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration)
        {
            workQueueConfiguration.WorkQueue.AttemptCreate();

            var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration;

            if (errorQueueConfiguration != null)
            {
                errorQueueConfiguration.ErrorQueue.AttemptCreate();
            }
        }
示例#5
0
        private void CreateQueues(QueueCreationType queueCreationType, IWorkQueueConfiguration workQueueConfiguration)
        {
            if (ShouldCreate(queueCreationType, workQueueConfiguration.WorkQueue))
            {
                CreatePhysicalQueue(workQueueConfiguration.WorkQueue);
            }

            var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration;

            if (errorQueueConfiguration != null)
            {
                if (ShouldCreate(queueCreationType, errorQueueConfiguration.ErrorQueue))
                {
                    CreatePhysicalQueue(errorQueueConfiguration.ErrorQueue);
                }
            }

            var journalQueueConfiguration = workQueueConfiguration as IJournalQueueConfiguration;

            if (journalQueueConfiguration == null || journalQueueConfiguration.JournalQueue == null)
            {
                return;
            }

            if (ShouldCreate(queueCreationType, journalQueueConfiguration.JournalQueue))
            {
                CreatePhysicalQueue(journalQueueConfiguration.JournalQueue);
            }
        }