comparison Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 277:963b17c275be v3

Refactoring Added <array> element to injection parameters Working on registrations of factories
author cin
date Sat, 28 Apr 2018 18:48:09 +0300
parents 6fefd5811b9b
children 6691aff01de1
comparison
equal deleted inserted replaced
276:b4e0f81c7425 277:963b17c275be
1 namespace Implab.ServiceHost.Unity 1 namespace Implab.ServiceHost.Unity
2 { 2 {
3 public class DefaultParameterElement : InjectionParameterElement, ITextValue { 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(InjectionValueBuilder builder) {
9 builder.Visit(this); 9 var type = builder.ResolveInjectedValueType(TypeName);
10 builder.SetValue(type, Safe.CreateDefaultValue(type));
10 } 11 }
11 } 12 }
12 } 13 }