comparison Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 274:22629bf26121 v3

Unity xml configuration, alpha2
author cin
date Fri, 27 Apr 2018 04:47:52 +0300
parents 79110a16cab7
children 6fefd5811b9b
comparison
equal deleted inserted replaced
273:79110a16cab7 274:22629bf26121
1 namespace Implab.ServiceHost.Unity 1 namespace Implab.ServiceHost.Unity
2 { 2 {
3 public class DefaultParameterElement : InjectionParameterElement { 3 public class DefaultParameterElement : InjectionParameterElement, ITextValue {
4 internal override object Resolve(InjectionValueContext context) { 4 public string Value {
5 var type = context.ResolveType(TypeName); 5 get { return null; }
6 return Safe.CreateDefaultValue(type); 6 }
7
8 internal override void Visit(InjectionValueBuilder builder) {
9 builder.Visit(this);
7 } 10 }
8 } 11 }
9 } 12 }