How to add Azure Functions extension

那年仲夏 提交于 2019-12-05 19:39:21

Running code on startup is not exactly the purpose of IExtensionConfigProvider. It's designed as extensibility point for user to create custom bindings.

So, unless your functions are using custom bindings, the implementations of IExtensionConfigProvider won't be auto-loaded by the runtime host, see code.

The author of the answer that you are referring to was using his extension to implement Dependency Injection with custom bindings, so it works for him.

If you intend to use your extension for custom binding, then use that binding in a function and the extension will start loading.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!