12.5.0 (2020-11-10)
- Includes all features from 12.5.0-preview.1
- Fixed a bug where QueueServiceClient.SetProperties and QueueService.GetProperties where the creating/parsing XML Service Queue Properties CorsRules incorrectly causing Invalid XML Errors
- Fixed bug where Queues SDK coudn't handle SASs with start and expiry time in format other than yyyy-MM-ddTHH:mm:ssZ.
- Added CanGenerateSasUri property, GenerateSasUri() to QueueClient.
- Added CanGenerateAccountSasUri property, GenerateAccountSasUri() to QueueServiceClient.
Support for binary data, custom shapes and Base64 encoding
This release adds a convinient way to send and receive binary data and custom shapes as a payload.
Additionally, support for Base64 encoding in HTTP requests and reponses has been added that makes interoperability with V11 and prior Storage SDK easier to implement.
The QueueClient.SendMessage
and QueueClient.SendMessageAsync
consume System.BinaryData
in addition to string
.
QueueMessage
and PeekedMessage
expose new property Body
of System.BinaryData
type to access message payload and should be used instead of MessageText
.
See System.BinaryData for more information about handling string
, binary data and custom shapes.
Receiving message as string
Before:
QueueMessage message = await queueClient.ReceiveMessage();
string messageText = message.MessageText;
After:
QueueMessage message = await queueClient.ReceiveMessage();
BinaryData body = message.Body;
string messageText = body.ToString();