comparison Implab.ServiceHost/Unity/DefaultParameterElement.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 e0916ddc9950
comparison
equal deleted inserted replaced
277:963b17c275be 278:6691aff01de1
3 public class DefaultParameterElement : InjectionParameterElement { 3 public class DefaultParameterElement : InjectionParameterElement {
4 public string Value { 4 public string Value {
5 get { return null; } 5 get { return null; }
6 } 6 }
7 7
8 public override void Visit(InjectionValueBuilder builder) { 8 public override void Visit(InjectionParameterBuilder builder) {
9 var type = builder.ResolveInjectedValueType(TypeName); 9 var type = builder.ResolveInjectedValueType(TypeName);
10 builder.SetValue(type, Safe.CreateDefaultValue(type)); 10 builder.SetValue(type, Safe.CreateDefaultValue(type));
11 } 11 }
12 } 12 }
13 } 13 }