Exemplo n.º 1
0
        private static void CreateTestQueues(CloudQueueClient queueClient)
        {
            queueClient.CreateQueueOrClearIfExists(ResolveName(FunctionChainingPerfTest.FirstQueueName));
            queueClient.CreateQueueOrClearIfExists(ResolveName(FunctionChainingPerfTest.LastQueueName));

            // Create the queues to pass messages around
            for (int i = 1; i <= FunctionChainingPerfTest.NumberOfGeneratedMethods; i++)
            {
                queueClient.CreateQueueOrClearIfExists(ResolveName(FunctionChainingPerfTest.PerfQueuePrefix + i));
            }
        }
Exemplo n.º 2
0
        private static void WriteTestMessages()
        {
            string resolvedQueueName = ResolveName(QueueName);

            _queueClient.CreateQueueOrClearIfExists(ResolveName(QueueName));
            CloudQueue queue = _queueClient.GetQueueReference(ResolveName(QueueName));

            for (int i = 0; i < NumberOfMessages; i++)
            {
                queue.AddMessage(new CloudQueueMessage("x"));
            }
        }