Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/InjectionParameterElement.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 |
---|---|
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
1 using System; |
270 | 2 using System.Xml.Serialization; |
3 | |
4 namespace Implab.ServiceHost.Unity { | |
272 | 5 public abstract class InjectionParameterElement { |
270 | 6 |
7 [XmlAttribute("type")] | |
8 public string TypeName { get; set; } | |
272 | 9 |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
10 internal abstract object Resolve(InjectionValueContext context); |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
11 |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
12 public virtual Type ResolveParameterType(InjectionValueContext context) { |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
13 return context.ResolveType(TypeName); |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
14 } |
270 | 15 } |
16 } |