comparison Implab.ServiceHost/Unity/ConstructorInjectionElement.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 8714471e8d78
comparison
equal deleted inserted replaced
276:b4e0f81c7425 277:963b17c275be
1 using System.Xml.Serialization; 1 using System.Xml.Serialization;
2 2
3 namespace Implab.ServiceHost.Unity { 3 namespace Implab.ServiceHost.Unity {
4 public class ConstructorInjectionElement : AbstractInjectionElement { 4 public class ConstructorInjectionElement : AbstractMemberInjection {
5 5
6 [XmlElement("dependency", typeof(DependencyParameterElement))] 6 [XmlElement("dependency", typeof(DependencyParameterElement))]
7 [XmlElement("value", typeof(ValueParameterElement))] 7 [XmlElement("value", typeof(ValueParameterElement))]
8 [XmlElement("serialized", typeof(SerializedParameterElement))] 8 [XmlElement("serialized", typeof(SerializedParameterElement))]
9 [XmlElement("default", typeof(DefaultParameterElement))] 9 [XmlElement("default", typeof(DefaultParameterElement))]
10 [XmlElement("array", typeof(ArrayParameterElement))]
10 public InjectionParameterElement[] Parameters { get; set; } 11 public InjectionParameterElement[] Parameters { get; set; }
11 12
12 internal override void Visit(TypeRegistrationBuilder context) { 13 internal override void Visit(TypeRegistrationBuilder context) {
13 context.Visit(this); 14 context.Visit(this);
14 } 15 }