view 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
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
    <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">
    </register>

    <register type="Container{}">
        <constructor/>
        <method name="SetInstance">
            <dependency type="T"/>
        </method>
    </register>

    <register type="Container{String}">
        <property name="Instance">
            <value>Hello!</value>
        </property>
    </register>

</container>