I have a class MyProvider that accepts a settings object as the constructor parameter. Does anyone know if Unity supports passing complex objects as parameters via app.config configuration?
Here's what I've tried so far (didn't work)
<register type="IProvider" mapTo="MyProvider">
<constructor>
<param name="settings">
<value>
<MyProviderSettings>
<UserId>YYYYYYYY</UserId>
<Password>XXXXXX</Password>
<OtherPropery>ZZZZZZZ</OtherPropery>
</MyProviderSettings>
</value>
</param>
I get an error "Invalid element MyProviderSettings"