Mercurial > pub > ImplabNet
view Implab.Playground/data/sample.xml @ 277:963b17c275be v3
Refactoring
Added <array> element to injection parameters
Working on registrations of factories
author | cin |
---|---|
date | Sat, 28 Apr 2018 18:48:09 +0300 |
parents | 22629bf26121 |
children | 6691aff01de1 |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> <namespace name="System"/> <namespace name="System.Collections.Generic"/> <namespace name="Implab.Playground"/> <!-- foo1 --> <register name="foo1" type="Foo"> <property name="Name"> <value>FOO!</value> </property> </register> <!-- foo2 --> <register name="foo2" type="Foo"> <property name="Name"> <value>GOOD</value> </property> <property name="IntValue"> <value>2</value> </property> </register> <register type="Foo"> <method name="AddRange"> <array itemsType="Foo"> <dependency name="foo2"/> </array> </method> </register> <register type="IContainer{}" mapTo="Container{}"> <constructor/> <method name="SetInstance"> <dependency type="T"/> </method> <method name="AddRange"> <array itemsType="T"> <dependency name="foo2"/> </array> </method> </register> <register type="List{}"> <constructor /> </register> <register type="IContainer{String}" mapTo="Container{String}"> <constructor/> <method name="SetInstance"> <dependency type="String" name="name1"/> </method> </register> <serialized type="Foo+Bar"> <Bar xmlns="" id="1"> <Name>Baaar</Name> </Bar> </serialized> <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value> <value name="name1" type="String" value="Hello!"/> <factory name="foo3" type="FooFactory"> <parameter name="FooName"><![CDATA[Wired "" objecty <> name @#$%^&]]></parameter> </factory> </container>