locked
Web Hooks not playing nicely with Dependency Injection RRS feed

  • Question

  • User-1663282223 posted

    I have built a Web API app which listens out for web hook coming from apps in Azure.  I've used the very helpful NuGet package, so have ended up with next to no code of my own.  I am receiving web hooks from Azure applications beautifully now.

    However, I have one issue – with DI, in my case StructureMap.  As soon as I add StructureMap to the project, the receiving process stops working.  Looking at what gets returned to the calling client, I can see that the application is no longer finding the web hook handler.

    Presumably there is some kind of default mapping set up somewhere, deep in the internal plumbing, which I will now need to replace with a mapping in StructureMap, but I can’t find it.

    Any pointers welcome!

    Thanks,

    Nick

    Thursday, May 12, 2016 8:25 PM

Answers