コード例 #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
ファイル: QueueManager.cs プロジェクト: zgabi/Shuttle.Esb
        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
ファイル: QueueManager.cs プロジェクト: jessezhao/shuttle-esb
        private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration)
        {
            workQueueConfiguration.WorkQueue.AttemptCreate();

            var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration;

            if (errorQueueConfiguration != null)
            {
                errorQueueConfiguration.ErrorQueue.AttemptCreate();
            }
        }
コード例 #5
0
ファイル: QueueManager.cs プロジェクト: nnyamhon/shuttle-esb
        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);
            }
        }