concept Transient in category dependency injection

appears as: Trsient, Trsient, Transient
Dependency Injection

This is an excerpt from Manning's book Dependency Injection.

Given this particular configuration, a better implementation of CommerceControllerActivator would reuse the same instances of both AspNetUserContextAdapter and RouteCalculator, while creating new instances of ProductService and SqlProductRepository. In short, you should configure AspNetUserContextAdapter and RouteCalculator to use the Singleton Lifestyle, and ProductService and SqlProductRepository as Transient. The following listing shows how to implement this change.

Listing 8.16 Mitigating Captive Dependencies with Pure DI
public class CommerceControllerActivator : IControllerActivator
{
    private readonly string connStr;    #1  
    private readonly IUserContext userContext;    #1  

    public CommerceControllerActivator(string connectionString)
    {
        this.connStr = connectionString;    #2  
        this.userContext =    #2  
            new AspNetUserContextAdapter();    #2  
    }

    public object Create(ControllerContext ctx)
    {
        var context = new CommerceContext(this.connStr);    #3  
        var provider = new SqlExchangeRateProvider(context);    #3  
    #3  

        Type type = ctx.ActionDescriptor
            .ControllerTypeInfo.AsType();

        if (type == typeof(HomeController))
        {
            return this.CreateHomeController(context);    #4  
        }
        else if (type == typeof(ExchangeController))
        {
            return this.CreateExchangeController(
                context, provider);    #4  
        }
        else
        {
            throw new Exception("Unknown controller " + type.Name);
        }
    }

    private HomeController CreateHomeController(
        CommerceContext context)
    {
        return new HomeController(    #5  
            new ProductService(    #5  
                new SqlProductRepository(    #5  
                    context),    #5  
                this.userContext));    #5  
    }

    private RouteController CreateExchangeController(
        CommerceContext context,
        IExchangeRateProvider provider) { ... }
}

#1   Storage fields for Singletons
#2   Creates Singletons
#3   Creates Scoped Dependencies
#4   Supplies factory methods with the created Scoped Dependencies
#5   Composes object graph containing Transient, Scoped, and Singleton instances