do { Engine.BlogAbout(".NET","Silverlight"); } while ( alive );  

Mark Monster

Mark Monster  

IoC Container instance sharing

I haven’t been able to use an IoC container on a real-world project yet. And even though I’ve been doing some research on it, I still have questions regarding IoC container usage.

I always thought about using the Application var for storing the container instance for an ASP.NET application. For other application I would use a static class or static var for the container instance. But thinking about this more and more, I’m not sure about this approach.

What approach do you think is the most sufficient way to share the container instance? Or should we not even share the container instance at all?

Leave a Reply