有许多示例如何在Windows Phone 7上向Queue添加消息。但是没有示例如何获取消息。据我所知,与Windows控制台应用程序有一些不同的程序来获取该消息,是否有人可以写几行如何在WP7上从Azure队列弹出消息。
IStorageCredentials credentials = new StorageCredentialsAccountAndKey("accountName",
"accountKey");
var client = new CloudQueueClient("http://myaccount.queue.core.windows.net/queue1", credentials);
var q = client.GetQueueReference("queueName");
q.GetMessage(); < --- Problematic line, this method does not have RETURN Type.