Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 275:6fefd5811b9b v3
refactoring
author | cin |
---|---|
date | Fri, 27 Apr 2018 16:57:30 +0300 |
parents | 22629bf26121 |
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 } |