Mercurial > pub > ImplabNet
comparison 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 |
comparison
equal
deleted
inserted
replaced
269:ff581cff7003 | 270:ade80d94dfb5 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> | 2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> |
3 <namespace name="Implab.Playground"/> | |
4 | |
3 <!-- foo1 --> | 5 <!-- foo1 --> |
4 <register name="foo1" type="Foo"> | 6 <register name="foo1" type="Foo"> |
7 <property name="Name"> | |
8 <value>FOO!</value> | |
9 </property> | |
5 </register> | 10 </register> |
6 | 11 |
7 <!-- foo2 --> | 12 <!-- foo2 --> |
8 <register name="foo2" type="Foo"> | 13 <register name="foo2" type="Foo"> |
14 <property name="Name"> | |
15 <value>GOOD</value> | |
16 </property> | |
17 <property name="IntValue"> | |
18 <value>2</value> | |
19 </property> | |
9 </register> | 20 </register> |
21 | |
22 <register type="Foo"> | |
23 </register> | |
24 | |
25 <register type="Container{}"> | |
26 <constructor/> | |
27 <method name="SetInstance"> | |
28 <dependency type="T"/> | |
29 </method> | |
30 </register> | |
31 | |
32 <register type="Container{String}"> | |
33 <property name="Instance"> | |
34 <value>Hello!</value> | |
35 </property> | |
36 </register> | |
37 | |
10 </container> | 38 </container> |