Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 281:e0916ddc9950 v3 tip
code cleanup and refactoring
author | cin |
---|---|
date | Fri, 01 Jun 2018 21:35:24 +0300 |
parents | 6691aff01de1 |
children |
rev | line source |
---|---|
270 | 1 namespace Implab.ServiceHost.Unity |
2 { | |
281 | 3 public class DefaultParameterElement : AbstractInjectionParameter { |
274 | 4 public string Value { |
5 get { return null; } | |
6 } | |
7 | |
278
6691aff01de1
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents:
277
diff
changeset
|
8 public override void Visit(InjectionParameterBuilder builder) { |
277 | 9 var type = builder.ResolveInjectedValueType(TypeName); |
10 builder.SetValue(type, Safe.CreateDefaultValue(type)); | |
272 | 11 } |
270 | 12 } |
13 } |