Mercurial > pub > ImplabNet
annotate Implab.Playground/data/sample.xml @ 280:f07be402ab02 v3
Added Trace<T>.Debug(...) method for debug messages
Added ContainerBuilde.LoadConfig(Uri) method
author | cin |
---|---|
date | Fri, 25 May 2018 19:15:26 +0300 |
parents | 6691aff01de1 |
children |
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"/> |
277 | 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 | 6 <namespace name="Implab.Playground"/> |
272 | 7 |
267 | 8 <!-- foo1 --> |
269 | 9 <register name="foo1" type="Foo"> |
270 | 10 <property name="Name"> |
11 <value>FOO!</value> | |
12 </property> | |
267 | 13 </register> |
14 | |
15 <!-- foo2 --> | |
269 | 16 <register name="foo2" type="Foo"> |
270 | 17 <property name="Name"> |
18 <value>GOOD</value> | |
19 </property> | |
20 <property name="IntValue"> | |
21 <value>2</value> | |
22 </property> | |
267 | 23 </register> |
270 | 24 |
25 <register type="Foo"> | |
277 | 26 <method name="AddRange"> |
27 <array itemsType="Foo"> | |
28 <dependency name="foo2"/> | |
29 </array> | |
30 </method> | |
270 | 31 </register> |
32 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
33 <register type="IContainer{}" mapTo="Container{}"> |
270 | 34 <constructor/> |
35 <method name="SetInstance"> | |
36 <dependency type="T"/> | |
37 </method> | |
277 | 38 <method name="AddRange"> |
39 <array itemsType="T"> | |
278
6691aff01de1
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents:
277
diff
changeset
|
40 <dependency name="foo2-bar"/> |
277 | 41 </array> |
42 </method> | |
43 </register> | |
44 | |
45 <register type="List{}"> | |
46 <constructor /> | |
270 | 47 </register> |
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 | 50 <constructor/> |
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 | 53 </method> |
270 | 54 </register> |
55 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
56 <serialized type="Foo+Bar"> |
274 | 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 | 72 </factory> |
73 | |
267 | 74 </container> |