[QUERY] What is the actual type of Azure.Storage.Queues.Models.QueueMessage.MessageId? #22673
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Query/Question
According to MSDN, the type of
QueueMessage.MessageId
isstring
. However in our testing, we have seen that it is actually always aGuid
that's beenToString()
'ed.Other MSDN docs, e.g. this one, explicitly state that this value is a GUID even though typed as a
string
. (I'm aware that linked doc is referring to a very old version, I'm just giving an example of a mismatch).Can I rely on this value always being a GUID in actuality? The reason I ask is that I have a requirement to serialize specific queue messages into a SQL database (please don't ask why), and obviously if the
MessageId
is actually a GUID I can just use it directly as the primary key on the table to look up a particular message. Conversely, if it's actually a string, I need a standard integer PK with a separate indexednvarchar(max)
column holding theMessageId
.Finally, if
MessageId
is a GUID, why is it still typed asstring
in the SDK POCOs? Simply for backwards-compatibility reasons?Environment:
The text was updated successfully, but these errors were encountered: