Mercurial > pub > ImplabNet
diff 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 |
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/InjectionParameterElement.cs Thu Apr 26 03:14:54 2018 +0300 +++ b/Implab.ServiceHost/Unity/InjectionParameterElement.cs Thu Apr 26 19:35:01 2018 +0300 @@ -1,3 +1,4 @@ +using System; using System.Xml.Serialization; namespace Implab.ServiceHost.Unity { @@ -6,6 +7,10 @@ [XmlAttribute("type")] public string TypeName { get; set; } - internal abstract object Resolve(RegistrationContext context); + internal abstract object Resolve(InjectionValueContext context); + + public virtual Type ResolveParameterType(InjectionValueContext context) { + return context.ResolveType(TypeName); + } } } \ No newline at end of file