concept LIFETIME MANAGEMENT in category .net

This is an excerpt from Manning's book Dependency Injection in .NET.
With DI, we can compose applications while intercepting dependencies and controlling their lifetimes. OBJECT COMPOSITION, INTERCEPTION, and LIFETIME MANAGEMENT are three dimensions of DI. Next I’ll cover them briefly; a more detailed treatment follows in part 3 of the book.
After that, we’ll use the rest of the chapter to look at different lifetime strategies. This part of the chapter takes the form of a catalog of available lifestyles. In most cases, one of these stock lifestyle patterns will provide a good match for a given challenge, so understanding them in advance equips you to deal with many difficult situations. When we’re finished, you should have a good grasp of LIFETIME MANAGEMENT and common lifetimes.
The first time I was introduced to the idea that the scope of DI includes LIFETIME MANAGEMENT I failed to understand the deep connection between OBJECT COMPOSITION and OBJECT LIFETIME. I finally got it, and it’s simple, so let’s take a look!
In this section, I’ll introduce LIFETIME MANAGEMENT and how it applies to DEPENDENCIES. We’ll start by looking at the general case of composing objects and how it has implications for the lifetimes of DEPENDENCIES. From there, we’ll move on to study how DI CONTAINERS can manage DEPENDENCY LIFETIME. Although most of the examples are specialized code that deals with particular configurations, we’ll also make a brief detour around a sample DI CONTAINER to get a glimpse at what lifetime configuration might look like.
First, we’ll investigate why OBJECT COMPOSITION implies LIFETIME MANAGEMENT.