Closed: where to get the details of the constructing injection?

Topics: Prism v4 - Silverlight 4
Oct 19, 2011 at 10:07 AM

Does all object subject to the contructor injection limit to this set of parameters (IUnityContainer container, IRegionManager regionManager) only ?

If there are more options, where can I get the list/details in the doc?

Oct 19, 2011 at 5:30 PM
Edited Oct 19, 2011 at 5:32 PM


Constructor injection is not the only option if you want to resolve instances from a container. For example, Unity and MEF also allows property injection, or in addition you could implement the IServiceLocator provided by Prism, in case you want to gain abstraction over the container you are using.

On the other hand, take into account that any object exported in the container can be obtained in any of these ways. For example, Prism services such as the Region Manager or the Event Aggregator are exported in the container by default.

You might find more information about this in the Prism documentation:

Also you could find this links useful:

I hope you find this helpful.

Agustin Adami

Nov 8, 2011 at 3:36 AM
aadami wrote:


Agustin Adami

Thx for the input.

After more sampling and trial, the constructor parameter is dynamic injecting/managed by the framework (Unity)

for those custom/my-own-stuff class/instance, I will need to use RegisterType/Register* api, then Unity will inject it/them as needed.