Mercurial > pub > ImplabNet
annotate 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 |
| rev | line source |
|---|---|
| 270 | 1 namespace Implab.ServiceHost.Unity |
| 2 { | |
| 272 | 3 public class DefaultParameterElement : InjectionParameterElement { |
|
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
4 internal override object Resolve(InjectionValueContext context) { |
|
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
5 var type = context.ResolveType(TypeName); |
|
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
6 return Safe.CreateDefaultValue(type); |
| 272 | 7 } |
| 270 | 8 } |
| 9 } |
