Skip to content

Commit c2fe814

Browse files
ebozdumanErsan Bozduman
andauthored
fix as a continuation of PR#984 (#1001)
Co-authored-by: Ersan Bozduman <ersanbozduman@gmail.com>
1 parent d3dbde0 commit c2fe814

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Minio/DataModel/Replication/ReplicationConfiguration.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

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

5051
Role = role;
51-
Rules = rules;
52+
Rules = (Collection<ReplicationRule>)rules;
5253
}
5354

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

56-
[XmlElement("Rule")] public ICollection<ReplicationRule> Rules { get; set; }
57+
[XmlElement("Rule")] public Collection<ReplicationRule> Rules { get; set; }
5758

5859
public string MarshalXML()
5960
{

0 commit comments

Comments
 (0)