Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 278:6691aff01de1 v3
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
Implab.ServiceHost: rewritten TypeReference (added support for nested types), stable API
author | cin |
---|---|
date | Thu, 03 May 2018 09:59:44 +0300 |
parents | 963b17c275be |
children | 8714471e8d78 |
comparison
equal
deleted
inserted
replaced
277:963b17c275be | 278:6691aff01de1 |
---|---|
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 | 11 |
12 public override void Visit(InjectionValueBuilder 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.SetDependencyReference(type, DependencyName, Optional); |
15 } | 15 } |
16 } | 16 } |
17 } | 17 } |