Closed davemartindale closed 4 years ago
@davemartindale Sorry for how slow I've been to respond here. This like of code is your culprit:
ServiceProvider provider = services.BuildServiceProvider();
You're not even using Lamar to do the resolution there, and the built in DI container isn't going to understand the Lamar centric registration.
I am having some issues when trying to resolve a class that uses IMemoryCache, Is this a bug with Lamar or am I just doing something wrong here?
I have the following class
and I have this in my ConfigureContainer (just doing the resolve here for testing)
When it tries to resolve IDummyManager it throws the following error
My Program.cs looks like this