annotate Implab.Playground/data/sample.xml @ 278:6691aff01de1 v3

Implab: added XmlDefaultSeializer (SerializersPool is now obsolete) Implab.ServiceHost: rewritten TypeReference (added support for nested types), stable API
author cin
date Thu, 03 May 2018 09:59:44 +0300
parents 963b17c275be
children
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"/>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
4 <namespace name="System.Collections.Generic"/>
278
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
5 <namespace name="Implab.Components"/>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
6 <namespace name="Implab.Playground"/>
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
7
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
8 <!-- foo1 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
9 <register name="foo1" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
10 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
11 <value>FOO!</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
12 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
13 </register>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
14
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
15 <!-- foo2 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
16 <register name="foo2" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
17 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
18 <value>GOOD</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
19 </property>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
20 <property name="IntValue">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
21 <value>2</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
22 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
23 </register>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
24
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
25 <register type="Foo">
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
26 <method name="AddRange">
963b17c275be Refactoring
cin
parents: 274
diff changeset
27 <array itemsType="Foo">
963b17c275be Refactoring
cin
parents: 274
diff changeset
28 <dependency name="foo2"/>
963b17c275be Refactoring
cin
parents: 274
diff changeset
29 </array>
963b17c275be Refactoring
cin
parents: 274
diff changeset
30 </method>
270
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{}" mapTo="Container{}">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
34 <constructor/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
35 <method name="SetInstance">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
36 <dependency type="T"/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
37 </method>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
38 <method name="AddRange">
963b17c275be Refactoring
cin
parents: 274
diff changeset
39 <array itemsType="T">
278
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
40 <dependency name="foo2-bar"/>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
41 </array>
963b17c275be Refactoring
cin
parents: 274
diff changeset
42 </method>
963b17c275be Refactoring
cin
parents: 274
diff changeset
43 </register>
963b17c275be Refactoring
cin
parents: 274
diff changeset
44
963b17c275be Refactoring
cin
parents: 274
diff changeset
45 <register type="List{}">
963b17c275be Refactoring
cin
parents: 274
diff changeset
46 <constructor />
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
47 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
48
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
49 <register type="IContainer{String}" mapTo="Container{String}">
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
50 <constructor/>
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
51 <method name="SetInstance">
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
52 <dependency type="String" name="name1"/>
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
53 </method>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
54 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
55
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
56 <serialized type="Foo+Bar">
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
57 <Bar xmlns="" id="1">
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
58 <Name>Baaar</Name>
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
59 </Bar>
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
60 </serialized>
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
61
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
62 <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value>
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
63 <value name="name1" type="String" value="Hello!"/>
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
64
278
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
65 <factory name="foo3" type="IFactory{Foo}" mapTo="FooFactory">
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
66 <property name="Connection">
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
67 <value><![CDATA[Wired "" objecty <> name @#$%^&]]></value>
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
68 </property>
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
69 <property name="UseSsl">
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
70 <value>false</value>
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
71 </property>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
72 </factory>
963b17c275be Refactoring
cin
parents: 274
diff changeset
73
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
74 </container>