Mercurial > pub > ImplabNet
annotate Implab.Playground/data/sample.xml @ 274:22629bf26121 v3
Unity xml configuration, alpha2
author | cin |
---|---|
date | Fri, 27 Apr 2018 04:47:52 +0300 |
parents | 79110a16cab7 |
children | 963b17c275be |
rev | line source |
---|---|
267 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> | |
272 | 3 <namespace name="System"/> |
270 | 4 <namespace name="Implab.Playground"/> |
272 | 5 |
267 | 6 <!-- foo1 --> |
269 | 7 <register name="foo1" type="Foo"> |
270 | 8 <property name="Name"> |
9 <value>FOO!</value> | |
10 </property> | |
267 | 11 </register> |
12 | |
13 <!-- foo2 --> | |
269 | 14 <register name="foo2" type="Foo"> |
270 | 15 <property name="Name"> |
16 <value>GOOD</value> | |
17 </property> | |
18 <property name="IntValue"> | |
19 <value>2</value> | |
20 </property> | |
267 | 21 </register> |
270 | 22 |
23 <register type="Foo"> | |
24 </register> | |
25 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
26 <register type="IContainer{}" mapTo="Container{}"> |
270 | 27 <constructor/> |
28 <method name="SetInstance"> | |
29 <dependency type="T"/> | |
30 </method> | |
31 </register> | |
32 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
33 <register type="IContainer{String}" mapTo="Container{String}"> |
272 | 34 <constructor/> |
35 <method name="SetInstance"> | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
36 <dependency type="String" name="name1"/> |
272 | 37 </method> |
270 | 38 </register> |
39 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
40 <serialized type="Foo+Bar"> |
274 | 41 <Bar xmlns="" id="1"> |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
42 <Name>Baaar</Name> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
43 </Bar> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
44 </serialized> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
45 |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
46 <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
47 <value name="name1" type="String" value="Hello!"/> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
48 |
267 | 49 </container> |