diff Implab.Playground/data/sample.xml @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 79110a16cab7
line wrap: on
line diff
--- a/Implab.Playground/data/sample.xml	Wed Apr 25 19:23:35 2018 +0300
+++ b/Implab.Playground/data/sample.xml	Thu Apr 26 03:14:54 2018 +0300
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
+    <namespace name="System"/>
     <namespace name="Implab.Playground"/>
-
+    
     <!-- foo1 -->
     <register name="foo1" type="Foo">
         <property name="Name">
@@ -22,17 +23,18 @@
     <register type="Foo">
     </register>
 
-    <register type="Container{}">
+    <register provides="IContainer{}" type="Container{}">
         <constructor/>
         <method name="SetInstance">
             <dependency type="T"/>
         </method>
     </register>
 
-    <register type="Container{String}">
-        <property name="Instance">
-            <value>Hello!</value>
-        </property>
+    <register provides="IContainer{String}" type="Container{String}">
+        <constructor/>
+        <method name="SetInstance">
+            <value type="String">Hello!</value>
+        </method>
     </register>
 
 </container>
\ No newline at end of file