annotate Implab.Playground/data/sample.xml @ 276:b4e0f81c7425 v3

container configuration docs
author cin
date Sat, 28 Apr 2018 00:11:38 +0300
parents 22629bf26121
children 963b17c275be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
3 <namespace name="System"/>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
4 <namespace name="Implab.Playground"/>
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
5
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
6 <!-- foo1 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
7 <register name="foo1" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
8 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
9 <value>FOO!</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
10 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
11 </register>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
12
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
13 <!-- foo2 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
14 <register name="foo2" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
15 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
16 <value>GOOD</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
17 </property>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
18 <property name="IntValue">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
19 <value>2</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
20 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
21 </register>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
22
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
23 <register type="Foo">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
24 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
25
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
26 <register type="IContainer{}" mapTo="Container{}">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
27 <constructor/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
28 <method name="SetInstance">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
29 <dependency type="T"/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
30 </method>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
31 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
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
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
34 <constructor/>
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
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
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
37 </method>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
38 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
39
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
40 <serialized type="Foo+Bar">
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
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
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
49 </container>