Azure / azure-service-bus-dotnet

☁️ .NET Standard client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
Other
235 stars 120 forks source link

Missing properties in QueueDescription, TopicDescription, and SubscriptionDescription #596

Closed ddshpak closed 6 years ago

ddshpak commented 6 years ago

Actual Behavior

The QueueDescription, TopicDescription, and SubscriptionDescription objects do not contain fields representing the current state of the Service Bus entity, e.g. number of messages and size in bytes.

These values appear to be deliberately ignored: https://github.com/Azure/azure-service-bus-dotnet/blob/e5552e8cd2cb3072808ab306de164462bfd6c553/src/Microsoft.Azure.ServiceBus/Management/QueueDescriptionExtensions.cs#L144 (similar code exists in TopicDescriptionExtensions.cs and SubscriptionDescriptionExtensions.cs)

Because these values are being so explicitly ignored, I'm wondering: is there is a reason these have been excluded? They're available in the WindowsAzure.ServiceBus .NET Framework package.

Expected Behavior

These values are deserialized from the API response and made available to the client.

Versions

SeanFeldman commented 6 years ago

Those are captured in QueueRuntimeInfo and can be obtained via ManagementClient.GetQueueRuntimeInfoAsync().

Is that what you're looking for @dshpak-iq ?

ddshpak commented 6 years ago

Yes, that's exactly what I was looking for — thanks!