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); } }
private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration) { workQueueConfiguration.WorkQueue.AttemptCreate(); if (workQueueConfiguration is IErrorQueueConfiguration errorQueueConfiguration) { errorQueueConfiguration.ErrorQueue.AttemptCreate(); } }
private void CreateQueues(IWorkQueueConfiguration workQueueConfiguration) { workQueueConfiguration.WorkQueue.AttemptCreate(); var errorQueueConfiguration = workQueueConfiguration as IErrorQueueConfiguration; if (errorQueueConfiguration != null) { errorQueueConfiguration.ErrorQueue.AttemptCreate(); } }