We are considering to use unity container in fairly big application. Having learned ins and outs of unity I found most examples on microsoft site creates contains in a using clause such as
using(IUnityContainer container = new UnityContainer())
Ideally, we want to use "container" object across application not just one place. I would like to ask community here who have used unity in their applications how would you share "container" across projects in a solution. From the fact that "container" should be disposed as soon as you use it, if doing so would not make "container" available in the whole solution.
What pattern should be used to create container and disposing and make it available across solution?
Does keeping "container" alive for long time hit performance of the application?
View Complete Post