diff Implab.Playground/data/sample.xml @ 270:ade80d94dfb5 v3

Working on Unity container xml configuration
author cin
date Wed, 25 Apr 2018 04:44:40 +0300
parents ff581cff7003
children 9d1cca834b05
line wrap: on
line diff
--- a/Implab.Playground/data/sample.xml	Tue Apr 24 01:46:02 2018 +0300
+++ b/Implab.Playground/data/sample.xml	Wed Apr 25 04:44:40 2018 +0300
@@ -1,10 +1,38 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
+    <namespace name="Implab.Playground"/>
+
     <!-- foo1 -->
     <register name="foo1" type="Foo">
+        <property name="Name">
+            <value>FOO!</value>
+        </property>
     </register>
 
     <!-- foo2 -->
     <register name="foo2" type="Foo">
+        <property name="Name"> 
+            <value>GOOD</value>
+        </property>
+        <property name="IntValue">
+            <value>2</value>
+        </property>
     </register>
+
+    <register type="Foo">
+    </register>
+
+    <register type="Container{}">
+        <constructor/>
+        <method name="SetInstance">
+            <dependency type="T"/>
+        </method>
+    </register>
+
+    <register type="Container{String}">
+        <property name="Instance">
+            <value>Hello!</value>
+        </property>
+    </register>
+
 </container>
\ No newline at end of file