Relative Content

Tag Archive for inversion-of-control

I get dependency injection, but can someone help me understand the need for an IoC container?

I apologize if this seems like yet another repeat of the question, but every time I find an article regarding the topic, it mostly just talks about what DI is. So, I get DI, but I’m trying to understand the need for an IoC container, which everyone seems to be getting into. Is the point of an IoC container really just to “auto-resolve” the concrete implementation of the dependencies? Maybe my classes tend to not have several dependencies and maybe that’s why I don’t see the big deal, but I want to make sure that I’m understanding the utility of the container correctly.

I get dependency injection, but can someone help me understand the need for an IoC container?

I apologize if this seems like yet another repeat of the question, but every time I find an article regarding the topic, it mostly just talks about what DI is. So, I get DI, but I’m trying to understand the need for an IoC container, which everyone seems to be getting into. Is the point of an IoC container really just to “auto-resolve” the concrete implementation of the dependencies? Maybe my classes tend to not have several dependencies and maybe that’s why I don’t see the big deal, but I want to make sure that I’m understanding the utility of the container correctly.

I get dependency injection, but can someone help me understand the need for an IoC container?

I apologize if this seems like yet another repeat of the question, but every time I find an article regarding the topic, it mostly just talks about what DI is. So, I get DI, but I’m trying to understand the need for an IoC container, which everyone seems to be getting into. Is the point of an IoC container really just to “auto-resolve” the concrete implementation of the dependencies? Maybe my classes tend to not have several dependencies and maybe that’s why I don’t see the big deal, but I want to make sure that I’m understanding the utility of the container correctly.

IoC invalidation

I have a bunch of services that get registered as singletons by my IoC container on startup, all of these services have a constructor which takes in a connection string which is used by the underlying storage provider.

IoC invalidation

I have a bunch of services that get registered as singletons by my IoC container on startup, all of these services have a constructor which takes in a connection string which is used by the underlying storage provider.