Skip to content

Commit

Permalink
fix as a continuation of PR#984 (#1001)
Browse files Browse the repository at this point in the history
Co-authored-by: Ersan Bozduman <ersanbozduman@gmail.com>
  • Loading branch information
ebozduman and Ersan Bozduman committed Feb 8, 2024
1 parent d3dbde0 commit c2fe814
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Minio/DataModel/Replication/ReplicationConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

using System.Collections.ObjectModel;
using System.Globalization;
using System.Xml;
using System.Xml.Serialization;
Expand Down Expand Up @@ -48,12 +49,12 @@ public ReplicationConfiguration(string role, ICollection<ReplicationRule> rules)
nameof(rules) + " Count of rules cannot exceed maximum limit of 1000.");

Role = role;
Rules = rules;
Rules = (Collection<ReplicationRule>)rules;
}

[XmlElement("Role")] public string Role { get; set; }

[XmlElement("Rule")] public ICollection<ReplicationRule> Rules { get; set; }
[XmlElement("Rule")] public Collection<ReplicationRule> Rules { get; set; }

public string MarshalXML()
{
Expand Down

0 comments on commit c2fe814

Please sign in to comment.