QueueCreationUtilsUsage()
        {
            #region msmq-create-queues-shared-usage

            QueueCreationUtils.CreateQueue(
                queueName: "error",
                account: Environment.UserName);

            QueueCreationUtils.CreateQueue(
                queueName: "audit",
                account: Environment.UserName);

            #endregion
        }
Example #2
0
        public static void CreateQueuesForEndpoint(string endpointName, string account)
        {
            // main queue
            QueueCreationUtils.CreateQueue(endpointName, account);

            // retries queue
            QueueCreationUtils.CreateQueue($"{endpointName}.retries", account);

            // timeout queue
            QueueCreationUtils.CreateQueue($"{endpointName}.timeouts", account);

            // timeout dispatcher queue
            QueueCreationUtils.CreateQueue($"{endpointName}.timeoutsdispatcher", account);
        }
Example #3
0
        public static void CreateQueuesForEndpoint(string endpointName, string account)
        {
            // main queue
            QueueCreationUtils.CreateQueue(endpointName, account);

            // timeout queue
            QueueCreationUtils.CreateQueue($"{endpointName}.timeouts", account);

            // timeout dispatcher queue
            QueueCreationUtils.CreateQueue($"{endpointName}.timeoutsdispatcher", account);

            // retries queue
            // TODO: Only required in Versions 5 and below
            QueueCreationUtils.CreateQueue($"{endpointName}.retries", account);
        }
Example #4
0
        public void CreateQueuesForEndpoint()
        {
            CreateEndpointQueues.CreateQueuesForEndpoint(
                endpointName: "myendpoint",
                account: Environment.UserName);

            Assert.IsTrue(MessageQueue.Exists(@".\private$\myendpoint"));

            QueueCreationUtils.CreateQueue(
                queueName: "myerror",
                account: Environment.UserName);
            Assert.IsTrue(MessageQueue.Exists(@".\private$\myerror"));

            QueueCreationUtils.CreateQueue(
                queueName: "myaudit",
                account: Environment.UserName);
            Assert.IsTrue(MessageQueue.Exists(@".\private$\myaudit"));
        }