ServiceLocator and InjectionConstructor and InjectionMembers

Topics: Questions
Mar 8, 2013 at 9:44 AM
How is it possible to use the ServiceLocator InjectionConstructor or InjectionMembers?
Mar 26, 2013 at 10:10 AM
Not possible?
Mar 26, 2013 at 10:17 AM
Hmmm, missed this one, sorry. That's not supported yet.
May 3, 2013 at 7:49 AM
Hello again.

Maybe there is an other solution. Wan't to register an class wich have an string as Constructorparameter. How to register?
May 3, 2013 at 11:18 AM
We have added an extension method in the latest version:


Please see if that fits your needs.
May 3, 2013 at 2:04 PM
Can not find any help to this.

Maybe you can help me.

Try to initialize my DatabaseConnctionString. Thats the way I do it now. With the Unity Container.
            var imInfo = new InjectionMember[]
                        new InjectionProperty("DatabaseName", Properties.Settings.Default.DatabaseName),
                        new InjectionProperty("ServerName", Properties.Settings.Default.ServerName),
                        new InjectionProperty("ProviderName", Properties.Settings.Default.ProviderName),
                        new InjectionProperty("Metadata", Properties.Settings.Default.Metadata),
                        new InjectionProperty("MultipleActiveResultSets", Properties.Settings.Default.MultipleActiveResultSets),
                        new InjectionProperty("IntegratedSecurity", Properties.Settings.Default.IntegratedSecurity)

May 3, 2013 at 4:27 PM
No, property injection is not supported, nor is it on the roadmap.