Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 280:f07be402ab02 v3
Added Trace<T>.Debug(...) method for debug messages
Added ContainerBuilde.LoadConfig(Uri) method
author | cin |
---|---|
date | Fri, 25 May 2018 19:15:26 +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 } |