Mercurial > pub > ImplabNet
diff 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 |
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/ContainerElement.cs Sat Apr 28 00:11:38 2018 +0300 +++ b/Implab.ServiceHost/Unity/ContainerElement.cs Sat Apr 28 18:48:09 2018 +0300 @@ -6,12 +6,14 @@ namespace Implab.ServiceHost.Unity { [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)] - public class ContainerElement : ContainerItemElement { + public class ContainerElement : AbstractContainerItem { - public List<ContainerItemElement> Items { get; set; } = new List<ContainerItemElement>(); + public List<AbstractContainerItem> Items { get; set; } = new List<AbstractContainerItem>(); public override void Visit(ContainerBuilder context) { - context.Visit(this); + if (Items != null) + foreach(var item in Items) + item.Visit(context); } } } \ No newline at end of file