comparison Implab.ServiceHost/Unity/PropertyInjectionElement.cs @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 22629bf26121
comparison
equal deleted inserted replaced
271:d4d437ec4483 272:9d1cca834b05
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 PropertyInjectionElement : AbstractInjectionElement { 4 public class PropertyInjectionElement : AbstractInjectionElement {
5
6 [XmlAttribute("name")]
7 public string Name { get; set; }
5 8
6 [XmlElement("dependency", typeof(DependencyParameterElement))] 9 [XmlElement("dependency", typeof(DependencyParameterElement))]
7 [XmlElement("value", typeof(ValueParameterElement))] 10 [XmlElement("value", typeof(ValueParameterElement))]
8 [XmlElement("serialized", typeof(SerializedParameterElement))] 11 [XmlElement("serialized", typeof(SerializedParameterElement))]
9 [XmlElement("default", typeof(DefaultParameterElement))] 12 [XmlElement("default", typeof(DefaultParameterElement))]
10 public InjectionParameterElement Value { get; set; } 13 public InjectionParameterElement Value { get; set; }
14
15 internal override void Visit(RegistrationContext context) {
16 context.Visit(this);
17 }
11 } 18 }
12 } 19 }