diff Implab.ServiceHost/Unity/TypeResolver.cs @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 963b17c275be
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/TypeResolver.cs	Wed Apr 25 19:23:35 2018 +0300
+++ b/Implab.ServiceHost/Unity/TypeResolver.cs	Thu Apr 26 03:14:54 2018 +0300
@@ -24,6 +24,7 @@
         }
 
         public TypeResolver(TypeResolver parent) {
+            m_parent = parent;
             m_insertAt = new LinkedListNode<string>(string.Empty);
             m_namespases.AddFirst(m_insertAt);
         }
@@ -58,6 +59,10 @@
             return resolved;
         }
 
+        public Type Resolve(string typeSpec) {
+            return Resolve(TypeReference.Parse(typeSpec));
+        }
+
         Type ResolveInternal(TypeReference reference, Type[] args, int argc) {
             var resolved = ProbeInNamespaces(
                 String.Join(".", new [] { reference.Namespace, reference.TypeName }.Where(x => !string.IsNullOrEmpty(x)) ),