comparison Implab.ServiceHost/Unity/ContainerElement.cs @ 277:963b17c275be v3

Refactoring Added <array> element to injection parameters Working on registrations of factories
author cin
date Sat, 28 Apr 2018 18:48:09 +0300
parents 22629bf26121
children
comparison
equal deleted inserted replaced
276:b4e0f81c7425 277:963b17c275be
4 using System.Xml.Schema; 4 using System.Xml.Schema;
5 using System.Xml.Serialization; 5 using System.Xml.Serialization;
6 6
7 namespace Implab.ServiceHost.Unity { 7 namespace Implab.ServiceHost.Unity {
8 [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)] 8 [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)]
9 public class ContainerElement : ContainerItemElement { 9 public class ContainerElement : AbstractContainerItem {
10 10
11 public List<ContainerItemElement> Items { get; set; } = new List<ContainerItemElement>(); 11 public List<AbstractContainerItem> Items { get; set; } = new List<AbstractContainerItem>();
12 12
13 public override void Visit(ContainerBuilder context) { 13 public override void Visit(ContainerBuilder context) {
14 context.Visit(this); 14 if (Items != null)
15 foreach(var item in Items)
16 item.Visit(context);
15 } 17 }
16 } 18 }
17 } 19 }