sample.xml
39 lines
| 1.0 KiB
| application/xml
|
XmlLexer
cin
|
r267 | <?xml version="1.0" encoding="UTF-8"?> | |
<container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> | |||
cin
|
r272 | <namespace name="System"/> | |
cin
|
r270 | <namespace name="Implab.Playground"/> | |
cin
|
r272 | ||
cin
|
r267 | <!-- foo1 --> | |
cin
|
r269 | <register name="foo1" type="Foo"> | |
cin
|
r270 | <property name="Name"> | |
<value>FOO!</value> | |||
</property> | |||
cin
|
r267 | </register> | |
<!-- foo2 --> | |||
cin
|
r269 | <register name="foo2" type="Foo"> | |
cin
|
r270 | <property name="Name"> | |
<value>GOOD</value> | |||
</property> | |||
<property name="IntValue"> | |||
<value>2</value> | |||
</property> | |||
cin
|
r267 | </register> | |
cin
|
r270 | ||
<register type="Foo"> | |||
</register> | |||
cin
|
r272 | <register provides="IContainer{}" type="Container{}"> | |
cin
|
r270 | <constructor/> | |
<method name="SetInstance"> | |||
<dependency type="T"/> | |||
</method> | |||
</register> | |||
cin
|
r272 | <register provides="IContainer{String}" type="Container{String}"> | |
<constructor/> | |||
<method name="SetInstance"> | |||
<value type="String">Hello!</value> | |||
</method> | |||
cin
|
r270 | </register> | |
cin
|
r267 | </container> |