Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I want to use LazyCache and UnityContainer together in an ASP.NET classic application (.NET framework 4.6.1+). Namely, to be able to inject IAppCache in various services. For ASP.NET Core and its d...
#1: Initial revision
How to use LazyCache library with Unity Container?
I want to use LazyCache and UnityContainer together in an ASP.NET classic application (.NET framework 4.6.1+). Namely, to be able to inject IAppCache in various services. For ASP.NET Core and its default DI container [it is as easy as](https://github.com/alastairtree/LazyCache/wiki/Quickstart#using-lazycacheaspnetcore-and-microsoftextensionsdependencyinjection): services.AddLazyCache(); How can this be done with Unity Container? **Note:** this is based on [this question and its answers](https://stackoverflow.com/questions/40727756/injecting-into-constructor-with-2-params-is-not-working/) from Stack Overflow, but simplified for the latest version of LazyCache.