Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 273:79110a16cab7 v3
Working on Unity xml configuration: Refactoring in progress
author | cin |
---|---|
date | Thu, 26 Apr 2018 19:35:01 +0300 |
parents | 9d1cca834b05 |
children | 22629bf26121 |
comparison
equal
deleted
inserted
replaced
272:9d1cca834b05 | 273:79110a16cab7 |
---|---|
1 namespace Implab.ServiceHost.Unity | 1 namespace Implab.ServiceHost.Unity |
2 { | 2 { |
3 public class DefaultParameterElement : InjectionParameterElement { | 3 public class DefaultParameterElement : InjectionParameterElement { |
4 internal override object Resolve(RegistrationContext context) { | 4 internal override object Resolve(InjectionValueContext context) { |
5 return context.Resolve(this); | 5 var type = context.ResolveType(TypeName); |
6 return Safe.CreateDefaultValue(type); | |
6 } | 7 } |
7 } | 8 } |
8 } | 9 } |