I'm migrating an ASP.NET application to .NET5 and have come across the following code that uses StructureMap...
For<ICache>().AlwaysUnique().Singleton().HttpContextScoped().Add<RedisCache>()
We are using Lamar in the new application; what's the equivalent code to replace .AlwaysUnique().Singleton().HttpContextScoped()?
Having had some comms with Jeremy Miller (Lamar author) he has confirmed that the last one wins, in the this case it would be HttpContextScoped (or Scoped in Lamar).