From 70cdcc03e19c4a1d600336a35a14fc545d3d5051 Mon Sep 17 00:00:00 2001 From: Ersan Bozduman Date: Wed, 7 Feb 2024 22:35:23 -0800 Subject: [PATCH] fix as a continuation of PR#984 --- Minio/DataModel/Replication/ReplicationConfiguration.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Minio/DataModel/Replication/ReplicationConfiguration.cs b/Minio/DataModel/Replication/ReplicationConfiguration.cs index 7b9f547f..48e4ad15 100644 --- a/Minio/DataModel/Replication/ReplicationConfiguration.cs +++ b/Minio/DataModel/Replication/ReplicationConfiguration.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System.Collections.ObjectModel; using System.Globalization; using System.Xml; using System.Xml.Serialization; @@ -48,12 +49,12 @@ public ReplicationConfiguration(string role, ICollection rules) nameof(rules) + " Count of rules cannot exceed maximum limit of 1000."); Role = role; - Rules = rules; + Rules = (Collection)rules; } [XmlElement("Role")] public string Role { get; set; } - [XmlElement("Rule")] public ICollection Rules { get; set; } + [XmlElement("Rule")] public Collection Rules { get; set; } public string MarshalXML() {