Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 276:b4e0f81c7425 v3
container configuration docs
author | cin |
---|---|
date | Sat, 28 Apr 2018 00:11:38 +0300 |
parents | 6fefd5811b9b |
children | 963b17c275be |
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 |
275 | 12 public override void Visit(InjectionValueBuilder builder) { |
274 | 13 builder.Visit(this); |
14 } | |
270 | 15 } |
16 } |