Beispiel #1
0
        public static void CreateQueuesForEndpoint(string uri, string endpointName, bool durableMessages, bool createExchanges)
        {
            // main queue
            QueueCreationUtils.CreateQueue(uri, endpointName, durableMessages, createExchanges);

            // callback queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.{Environment.MachineName}", durableMessages, createExchanges);

            // timeout queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.Timeouts", durableMessages, createExchanges);

            // timeout dispatcher queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.TimeoutsDispatcher", durableMessages, createExchanges);
        }
        public static void CreateQueuesForEndpoint(string uri, string endpointName, bool durableMessages, bool createExchanges)
        {
            // main queue
            QueueCreationUtils.CreateQueue(uri, endpointName, durableMessages, createExchanges);

            // callback queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.{Environment.MachineName}", durableMessages, createExchanges);

            // timeout queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.Timeouts", durableMessages, createExchanges);

            // timeout dispatcher queue
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.TimeoutsDispatcher", durableMessages, createExchanges);

            // retries queue
            // TODO: Only required in Versions 3 and below
            QueueCreationUtils.CreateQueue(uri, $"{endpointName}.Retries", durableMessages, createExchanges);
        }
Beispiel #3
0
        public void CreateQueuesForEndpoint()
        {
            CreateEndpointQueues.CreateQueuesForEndpoint(
                uri: "amqp://*****:*****@localhost:5672",
                endpointName: "myendpoint",
                durableMessages: true,
                createExchanges: true);

            QueueCreationUtils.CreateQueue(
                uri: "amqp://*****:*****@localhost:5672",
                queueName: "error",
                durableMessages: true,
                createExchange: true);

            QueueCreationUtils.CreateQueue(
                uri: "amqp://*****:*****@localhost:5672",
                queueName: "audit",
                durableMessages: true,
                createExchange: true);
        }