Site Feedback Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Cannot get "Tired Of Waiting In Line" Azure Achievement to work

Back to Forum: Site Feedback
  • User profile image
    AceHack

    I've followed the guide here

    http://www.windowsazure.com/en-us/develop/net/how-to-guides/queue-service/

    Here is my storage connection string "DefaultEndpointsProtocol=https;AccountName=***;AccountKey=***"

    And here is my code that i have successfully debugged locally and tested it works and also deployed to Azure.

            int Queue()
            {
                CloudStorageAccount storageAccount = CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("StorageConnectionString"));
                CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();
                CloudQueue queue = queueClient.GetQueueReference("myqueue");
                queue.CreateIfNotExist();
    
                CloudQueueMessage message = new CloudQueueMessage("Hello, World");
                queue.AddMessage(message);
    
                CloudQueueMessage retrievedMessage = queue.GetMessage(TimeSpan.FromSeconds(1));
                Thread.Sleep(2);
                var msgs = queue.GetMessages(1, TimeSpan.FromSeconds(60));
                msgs.ToList().ForEach(msg => queue.DeleteMessage(msg));
                queue.Delete();
                return 0;
            }
    

  • User profile image
    AceHack

    Okay I kept messing around with this one and found even more timeout settings and finally got the achievement.  No help needed here.  Thanks.

  • User profile image
    Tikrimi

    Hi,

    I'm trying to complete this achievement... can you tell me where you have found more timeout settings plz ? Thanks.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.