JamesRandall / FunctionMonkey

Write more elegant Azure Functions with less boilerplate, more consistency, and support for REST APIs. Docs can be found at https://functionmonkey.azurefromthetrenches.com
MIT License
294 stars 49 forks source link

Cannot resolve IContainerProvider when using FunctionMonkey.MediatR #130

Open RubenDelange opened 4 years ago

RubenDelange commented 4 years ago

What I'd like to do is:

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?

JamesRandall commented 4 years ago

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.

mdg215199 commented 4 years ago

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