Question

I'm working with the Composite Application Library and I come across e.g. this line:

Shell shell = Container.Resolve<Shell>();

so I want to look at the code that makes up the Resolve method.

So I open up CompositeApplicationLibrary_Desktop.sln in Visual Studio.

I find classes such as UnityBootstrapper.cs, but nowhere can I find the code for the UnityContainer class. I find references to it such as:

UnityContainer container = new UnityContainer();

but if I rightclick on "UnityContainer()" and choose "go to definition" all I get is meta data about this class.

Where can I look at the code for the Resolve method on the UnityContainer class?

Was it helpful?

Solution

You can also download just the Unity Application block. There is a zip file in that package that includes only Unity source.

The Resolve method can be found in there for sure (for example, that method calls DoBuildUp()...)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top