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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
1 namespace Implab.ServiceHost.Unity
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
2 {
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
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
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
7 }
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
8 }
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
9 }