I use the following 3 lines to resolve a class instance with one constructor parameter. I am trying to register the parameter object with:
I am using an external configuration file and the resolution fails with the message: "An item with the same key has already been added. (Strategy type BuildPlanStrategy, index 3)"}".
I believe that this is happening because the prameter object is null.The parameter needs to be set programmatically (since it will be out of state if i configure it in the config file).
How can i programmatically pass the initialized constructor parameter? I tried with InjectionConstructor but i got the same error again.
Help will be much appreciated.