private static void SimpleEnququeAzure()
{
var queueName = "test-azure-queue";
var queueClient = new Azure.Storage.Queues.QueueClient(ConnectionString, queueName);
//實作上這建立一次就好了,不然大量跑會拖慢資源
queueClient.CreateIfNotExists();
for (var i = 1; i <= 10; i++) {
var res = queueClient.SendMessage("Hello, Azure Queue .測試資料 " + i);
Console.WriteLine(JsonConvert.SerializeObject(res.Value));
}
}
Before you read this, the article was in a superposition of human and AI. Upon observation, the wave function collapsed into a sleep-deprived developer.