Mercurial > pub > ImplabNet
annotate 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 |
rev | line source |
---|---|
272 | 1 using System.Xml.Serialization; |
2 | |
3 namespace Implab.ServiceHost.Unity { | |
274 | 4 public class DependencyParameterElement : InjectionParameterElement, IDependencyReference { |
272 | 5 |
6 [XmlAttribute("name")] | |
7 public string DependencyName { get; set; } | |
8 | |
9 [XmlAttribute("optional")] | |
10 public bool Optional { get; set; } | |
274 | 11 |
12 internal override void Visit(InjectionValueBuilder builder) { | |
13 builder.Visit(this); | |
14 } | |
270 | 15 } |
16 } |