comparison Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 274:22629bf26121 v3

Unity xml configuration, alpha2
author cin
date Fri, 27 Apr 2018 04:47:52 +0300
parents 79110a16cab7
children 6fefd5811b9b
comparison
equal deleted inserted replaced
273:79110a16cab7 274:22629bf26121
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 DependencyParameterElement : InjectionParameterElement { 4 public class DependencyParameterElement : InjectionParameterElement, IDependencyReference {
5 5
6 [XmlAttribute("name")] 6 [XmlAttribute("name")]
7 public string DependencyName { get; set; } 7 public string DependencyName { get; set; }
8 8
9 [XmlAttribute("optional")] 9 [XmlAttribute("optional")]
10 public bool Optional { get; set; } 10 public bool Optional { get; set; }
11
12 internal override void Visit(InjectionValueBuilder builder) {
13 builder.Visit(this);
14 }
11 } 15 }
12 } 16 }