Mercurial > pub > ImplabNet
comparison 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 |
comparison
equal
deleted
inserted
replaced
272:9d1cca834b05 | 273:79110a16cab7 |
---|---|
1 using System; | |
1 using System.Xml.Serialization; | 2 using System.Xml.Serialization; |
2 | 3 |
3 namespace Implab.ServiceHost.Unity { | 4 namespace Implab.ServiceHost.Unity { |
4 public abstract class InjectionParameterElement { | 5 public abstract class InjectionParameterElement { |
5 | 6 |
6 [XmlAttribute("type")] | 7 [XmlAttribute("type")] |
7 public string TypeName { get; set; } | 8 public string TypeName { get; set; } |
8 | 9 |
9 internal abstract object Resolve(RegistrationContext context); | 10 internal abstract object Resolve(InjectionValueContext context); |
11 | |
12 public virtual Type ResolveParameterType(InjectionValueContext context) { | |
13 return context.ResolveType(TypeName); | |
14 } | |
10 } | 15 } |
11 } | 16 } |