In this Autofac IoC article they show an example of mapping an interface to an implementation with a parameter. You’ll find it halfway down the article.
What is the Unity equivalent in XML? Can’t use the fluent syntax for what I’m doing. Needs to be an external config file.
UPDATE:
This is the specific piece of code I want to know how to do in Unity –
<component id="DataStoreProvider"
service="Company.Server.IDataStoreProvider,Company.Server.Interface"
type="Company.Server.DataStoreProvider,Company.Server.Core">
<parameters>
<connectionString>My Connection String</connectionString>
</parameters>
</component>
Maybe not the greatest example passing in the connection string this way… but you get the point. I’d like to know how to do parameters in XML in Unity.
You could do this. Refer to this MSDN article
UPDATE: If you look into the MSDN article, there is a section that describes what I believe that fits your requirements.