You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updating Queue Storage to the new SDKs.
* Update reference
* test path
* modify format
* Update the doc in queue-storage
* remove invalid changes
* Updating some variables' name and removing invalid changes.
* remove repeat comments after the 3-line header block for each section
* omit the new when creating queueClient.
* Update ReadMe file
* Update Readme file
* Remove en-us in link
* Update docs/fsharp/using-fsharp-on-azure/queue-storage.md
Co-authored-by: Wenjie Yu <v-wenjyu@microsoft.com>
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
You'll need an Azure Storage connection string for this tutorial. For more information about connection strings, see [Configure Storage Connection Strings](/azure/storage/storage-configure-connection-string).
38
38
39
39
For the tutorial, you'll enter your connection string in your script, like this:
However, this is **not recommended** for real projects. Your storage account key is similar to the root password for your storage account. Always be careful to protect your storage account key. Avoid distributing it to other users, hard-coding it, or saving it in a plain-text file that is accessible to others. You can regenerate your key using the Azure portal if you believe it may have been compromised.
44
44
45
45
For real applications, the best way to maintain your storage connection string is in a configuration file. To fetch the connection string from a configuration file, you can do this:
You can get an estimate of the number of messages in a queue. The `FetchAttributes` method asks the Queue service to retrieve the queue attributes, including the message count. The `ApproximateMessageCount` property returns the last value retrieved by the `FetchAttributes` method, without calling the Queue service.
144
+
You can get an estimate of the number of messages in a queue. The `GetProperties` method asks the Queue service to retrieve the queue attributes, including the message count. The `ApproximateMessagesCount` property returns the last value retrieved by the `GetProperties` method.
If you're migrating from the old libraries, they Base64 encoded messages by default but the new libraries do not because it's more performant.
158
+
See [MessageEncoding](https://docs.microsoft.com/dotnet/api/azure.storage.queues.queueclientoptions.messageencoding?view=azure-dotnet#Azure_Storage_Queues_QueueClientOptions_MessageEncoding) for how to set that up.
161
159
162
160
## Next steps
163
161
164
-
Now that you've learned the basics of Queue storage, follow these links
165
-
to learn about more complex storage tasks.
162
+
Now that you've learned the basics of Queue storage, follow these links to learn about more complex storage tasks.
166
163
167
164
-[Azure Storage APIs for .NET](/dotnet/api/overview/azure/storage)
168
165
-[Azure Storage Type Provider](https://github.com/fsprojects/AzureStorageTypeProvider)
0 commit comments