diff Implab.ServiceHost/Unity/ContainerElement.cs @ 270:ade80d94dfb5 v3

Working on Unity container xml configuration
author cin
date Wed, 25 Apr 2018 04:44:40 +0300
parents ff581cff7003
children d4d437ec4483
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/ContainerElement.cs	Tue Apr 24 01:46:02 2018 +0300
+++ b/Implab.ServiceHost/Unity/ContainerElement.cs	Wed Apr 25 04:44:40 2018 +0300
@@ -8,7 +8,7 @@
     [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)]
     public class ContainerElement : IXmlSerializable {
 
-        public List<IConfigurationElement> Registrations {get; set; } = new List<IConfigurationElement>();
+        public List<IConfigurationElement> Items {get; set; } = new List<IConfigurationElement>();
 
         public XmlSchema GetSchema() {
             return null;
@@ -17,7 +17,7 @@
         public void ReadXml(XmlReader reader) {
             while(reader.Read() && reader.NodeType != XmlNodeType.EndElement) {
                 var registration = ConfigurationSchema.Default.Deserialize<IConfigurationElement>(reader);
-                Registrations.Add(registration);
+                Items.Add(registration);
             }
         }