From f3b5fc82561d4b0a48867c595f87a0327d70f3d5 Mon Sep 17 00:00:00 2001
From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Date: Thu, 19 Nov 2020 19:33:10 -0800
Subject: [PATCH] Port ATOM fix
---
.../src/Administration/QueueProperties.cs | 25 +-
.../QueuePropertiesExtensions.cs | 59 +++--
.../SubscriptionPropertiesExtensions.cs | 31 +--
.../src/Administration/TopicProperties.cs | 16 ++
.../TopicPropertiesExtensions.cs | 52 +++--
.../Administration/QueuePropertiesTests.cs | 58 +++++
.../ServiceBusManagementClientLiveTests.cs | 6 +-
.../SubscriptionPropertiesTests.cs | 50 ++++
.../AuthenticateWithAADAsync.json | 62 ++---
...henticateWithSharedKeyCredentialAsync.json | 62 ++---
.../BasicQueueCrudOperationsAsync.json | 167 +++++++++-----
.../BasicRuleCrudOperationsAsync.json | 216 +++++++++---------
.../BasicSubscriptionCrudOperationsAsync.json | 143 ++++++------
.../BasicTopicCrudOperationsAsync.json | 119 +++++-----
.../CorrelationFilterPropertiesAsync.json | 66 +++---
.../GetNamespacePropertiesAsync.json | 16 +-
.../GetTopicRuntimeInfoAsync.json | 107 ++++-----
.../SqlFilterParamsAsync.json | 62 ++---
.../ThrowsIfEntityAlreadyExistsAsync.json | 128 ++++++-----
.../ThrowsIfEntityDoesNotExistAsync.json | 208 +++++++++--------
20 files changed, 972 insertions(+), 681 deletions(-)
diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/QueueProperties.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/QueueProperties.cs
index b717284dbdc5..b5401a5bea80 100644
--- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/QueueProperties.cs
+++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/QueueProperties.cs
@@ -3,6 +3,8 @@
using System;
using System.Collections.Generic;
+using System.Xml;
+using System.Xml.Linq;
using Azure.Core;
namespace Azure.Messaging.ServiceBus.Administration
@@ -287,11 +289,29 @@ public string UserMetadata
}
}
+ internal bool IsAnonymousAccessible { get; set; } = false;
+
+ internal bool SupportOrdering
+ {
+ get
+ {
+ return _internalSupportOrdering ?? !EnablePartitioning;
+ }
+ set
+ {
+ _internalSupportOrdering = value;
+ }
+ }
+
+ internal bool? _internalSupportOrdering = null;
+
+ internal bool EnableExpress { get; set; } = false;
+
///
/// List of properties that were retrieved using GetQueue but are not understood by this version of client is stored here.
/// The list will be sent back when an already retrieved QueueDescription will be used in UpdateQueue call.
///
- internal List