Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 279:8714471e8d78 v3
Container configuration cleanup, RC2
author | cin |
---|---|
date | Fri, 04 May 2018 18:12:42 +0300 |
parents | 6691aff01de1 |
children | e0916ddc9950 |
rev | line source |
---|---|
270 | 1 namespace Implab.ServiceHost.Unity |
2 { | |
277 | 3 public class DefaultParameterElement : InjectionParameterElement { |
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 } |