Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/MethodInjectionElement.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 MethodInjectionElement : AbstractInjectionElement { | 4 public class MethodInjectionElement : AbstractMemberInjection { |
5 | 5 |
6 [XmlAttribute("name")] | 6 [XmlAttribute("name")] |
7 public string Name { get; set; } | 7 public string Name { get; set; } |
8 | 8 |
9 [XmlElement("dependency", typeof(DependencyParameterElement))] | 9 [XmlElement("dependency", typeof(DependencyParameterElement))] |
10 [XmlElement("value", typeof(ValueParameterElement))] | 10 [XmlElement("value", typeof(ValueParameterElement))] |
11 [XmlElement("serialized", typeof(SerializedParameterElement))] | 11 [XmlElement("serialized", typeof(SerializedParameterElement))] |
12 [XmlElement("default", typeof(DefaultParameterElement))] | 12 [XmlElement("default", typeof(DefaultParameterElement))] |
13 [XmlElement("array", typeof(ArrayParameterElement))] | |
13 public InjectionParameterElement[] Parameters { get; set; } | 14 public InjectionParameterElement[] Parameters { get; set; } |
14 | 15 |
15 internal override void Visit(TypeRegistrationBuilder context) { | 16 internal override void Visit(TypeRegistrationBuilder context) { |
16 context.Visit(this); | 17 context.Visit(this); |
17 } | 18 } |