annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
1 using Implab.Xml;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
2 using System.Collections.Generic;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
3 using System.Xml;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
4 using System.Xml.Schema;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
5 using System.Xml.Serialization;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
6
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
7 namespace Implab.ServiceHost.Unity {
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
8 [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)]
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
9 public class ContainerElement : AbstractContainerItem {
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
10
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
11 public List<AbstractContainerItem> Items { get; set; } = new List<AbstractContainerItem>();
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
12
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
13 public override void Visit(ContainerBuilder context) {
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
14 if (Items != null)
963b17c275be Refactoring
cin
parents: 274
diff changeset
15 foreach(var item in Items)
963b17c275be Refactoring
cin
parents: 274
diff changeset
16 item.Visit(context);
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
17 }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
18 }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
19 }