comparison Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 279:8714471e8d78 v3

Container configuration cleanup, RC2
author cin
date Fri, 04 May 2018 18:12:42 +0300
parents 6691aff01de1
children e0916ddc9950
comparison
equal deleted inserted replaced
278:6691aff01de1 279:8714471e8d78
9 [XmlAttribute("optional")] 9 [XmlAttribute("optional")]
10 public bool Optional { get; set; } 10 public bool Optional { get; set; }
11 11
12 public override void Visit(InjectionParameterBuilder builder) { 12 public override void Visit(InjectionParameterBuilder builder) {
13 var type = builder.ResolveInjectedValueType(TypeName); 13 var type = builder.ResolveInjectedValueType(TypeName);
14 builder.SetDependencyReference(type, DependencyName, Optional); 14 builder.SetDependency(type, DependencyName, Optional);
15 } 15 }
16 } 16 }
17 } 17 }