##// END OF EJS Templates
Implemented typereference parser
Implemented typereference parser

File last commit:

r267:6b3e5c48131b v3
r268:0be8a6ae8307 v3
Show More
ContainerElement.cs
27 lines | 886 B | text/x-csharp | CSharpLexer
cin
Working on Unity xml configuration
r267 using Implab.Xml;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace Implab.ServiceHost.Unity {
[XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)]
public class ContainerElement : IXmlSerializable {
public List<ServiceElement> Registrations {get; set; } = new List<ServiceElement>();
public XmlSchema GetSchema() {
return null;
}
public void ReadXml(XmlReader reader) {
while(reader.Read() && reader.NodeType != XmlNodeType.EndElement) {
var registration = SerializationHelpers.Deserialize<ServiceElement>(reader);
Registrations.Add(registration);
}
}
public void WriteXml(XmlWriter writer) {
throw new System.NotImplementedException();
}
}
}