Skip to content
Gurucharan Subramani edited this page Jun 23, 2017 · 6 revisions

In case you want to add metadata to a binding you can add one or more metadata elements to a binding like shown in the following example:

<module name="myXmlConfigurationModule">
    <bind service="MyNamespace.IMyService, MyAssembly"
          to="MyNamespace.MyServiceImplementation, MyAssembly">
        <metadata key="class" value="red"/>
    </bind>
</module>

Continue reading: Extending the syntax

Clone this wiki locally