The title pretty much explains my question:
If there are no messages in the Storage Queue, why would it not just return 0, assuming we were able to get the queue reference and make a connection? Instead, it returns null
.
Does it have to do with the fact that the message count is "approximate?" Curious, more than anything.
The approximate message count starts as null
to indicate that it has not been initialized. After the first call to FetchAttributes
, it is populated with the current value from the service. If there are no messages in the queue at this point then the value returned is zero.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With