I am trying to use the generic Lazy class to instantiate a costly class with .net core dependency injection extension. I have registered the IRepo type, but I\'m not sure wh
To my opinion, the code below should do the work(.net core 3.1)
services.AddTransient(); services.AddTransient(typeof(Lazy<>), typeof(Lazy<>));