/// <summary> /// จัดคิวการอัพเดทข้อมูลผู้ใช้ /// </summary> /// <param name="profileInfo">ข้อมูลผู้ใช้ที่ทำการอัพเดท</param> public async Task EnqueueUpdateUserProfile(UpdateUserProfileMessage profileInfo) { var storageAccount = CloudStorageAccount.Parse(_storageConnectionString); var queueClient = storageAccount.CreateCloudQueueClient(); var queue = queueClient.GetQueueReference(QueueName); await queue.CreateIfNotExistsAsync(); var profileInfoString = JsonConvert.SerializeObject(profileInfo); var message = new CloudQueueMessage(profileInfoString); await queue.AddMessageAsync(message); }