FunctionMonkey icon indicating copy to clipboard operation
FunctionMonkey copied to clipboard

Cannot resolve IContainerProvider when using FunctionMonkey.MediatR

Open RubenDelange opened this issue 5 years ago • 2 comments

What I'd like to do is:

  • Use a custom IoC container (LightInject) with FunctionMonkey
  • Use FunctionMonkey.MediatR

I've followed the IoC container guidelines, so I introduced the IContainerProvider interface. So far, so good.

Then, I installed FunctionMonkey.MediatR (pre-release) which installs FunctionMonkey.Abstractions 4.0.52-beta.4. The problem I'm facing now is that the FunctionMonkey.Abstractions.IContainerProvider can no longer be resolved :(

What are my options here?

RubenDelange avatar Feb 20 '20 10:02 RubenDelange

Sugar. I think I need to remove that from the docs and the implementation.

Function Monkey now leverages Azure Functions IoC support and to the best of my knowledge you can't use custom IoC containers.

JamesRandall avatar Feb 20 '20 10:02 JamesRandall

i think there's a couple examples on how to achieve that with wrappers, servicelocators and webjobs, but it's not ideal.

mdg215199 avatar Feb 21 '20 05:02 mdg215199